Export the HadError variable from the errors package.
This commit is contained in:
parent
0641c47109
commit
f682b8468f
1 changed files with 2 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ package errors
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
var hadError = false
|
var HadError = false
|
||||||
|
|
||||||
func EmitError(line int, message string) {
|
func EmitError(line int, message string) {
|
||||||
report(line, "", message)
|
report(line, "", message)
|
||||||
|
|
@ -15,9 +15,5 @@ func report(line int, where, message string) {
|
||||||
where,
|
where,
|
||||||
message,
|
message,
|
||||||
)
|
)
|
||||||
hadError = true
|
HadError = true
|
||||||
}
|
|
||||||
|
|
||||||
func HadError() bool {
|
|
||||||
return hadError
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue