Export the HadError variable from the errors package.

This commit is contained in:
Mariano Uvalle 2023-05-06 23:05:25 +00:00
parent 0641c47109
commit f682b8468f

View file

@ -2,7 +2,7 @@ package errors
import "fmt"
var hadError = false
var HadError = false
func EmitError(line int, message string) {
report(line, "", message)
@ -15,9 +15,5 @@ func report(line int, where, message string) {
where,
message,
)
hadError = true
}
func HadError() bool {
return hadError
HadError = true
}