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"
|
||||
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue