13 lines
No EOL
324 B
Go
13 lines
No EOL
324 B
Go
package errors
|
|
|
|
import "fmt"
|
|
|
|
// InvalidTopLevel error is created when a top-level instruction is not valid.
|
|
type InvalidTopLevel struct {
|
|
Instruction string
|
|
}
|
|
|
|
// Error implements the error interface.
|
|
func (err *InvalidTopLevel) Error() string {
|
|
return fmt.Sprintf("Invalid top level instruction '%s'", err.Instruction)
|
|
} |