q/src/errors/InvalidTopLevel.go
Eduard Urbach c2b8db238e
All checks were successful
/ test (push) Successful in 16s
Implemented function scanning
2025-06-19 23:31:52 +02:00

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)
}