aboutsummaryrefslogtreecommitdiff
path: root/spec/syntax_error.go
diff options
context:
space:
mode:
Diffstat (limited to 'spec/syntax_error.go')
-rw-r--r--spec/syntax_error.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/syntax_error.go b/spec/syntax_error.go
index 59ef62d..041486d 100644
--- a/spec/syntax_error.go
+++ b/spec/syntax_error.go
@@ -1,7 +1,5 @@
package spec
-import "fmt"
-
type SyntaxError struct {
message string
}
@@ -13,7 +11,7 @@ func newSyntaxError(message string) *SyntaxError {
}
func (e *SyntaxError) Error() string {
- return fmt.Sprintf("syntax error: %s", e.message)
+ return e.message
}
var (