diff options
| author | tjp <tjp@ctrl-c.club> | 2023-11-14 15:47:13 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2023-11-14 15:47:13 -0700 |
| commit | de6853760c155596f05b7d20bb53bbec0b3eb30e (patch) | |
| tree | 9731993e758c1eced822c83d95fd0c6d407d6416 /parse.go | |
| parent | 1a3ec70d3f0b7d62e570f3b85aa7e0e034a2cc7b (diff) | |
fixes and adjusting to a sliderule bump
Diffstat (limited to 'parse.go')
| -rw-r--r-- | parse.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -327,11 +327,11 @@ func validateRoute(serverType string, dir *RouteDirective) error { return fmt.Errorf("%s servers don't support 'with autoatom'", serverType) } if dir.Modifiers.titanName != "" && (serverType != "gemini" || dir.Type != "static") { - return fmt.Errorf("titan modifier only allowed on gemini{static}") + return errors.New("titan modifier only allowed on gemini{static}") } if dir.Modifiers.ExecCmd != "" && !(dir.Type == "cgi" || (dir.Type == "static" && dir.Modifiers.Exec)) { - return fmt.Errorf("'cmd' modifier only valid on 'cgi' and 'static...with exec' directives") + return errors.New("'cmd' modifier only valid on 'cgi' and 'static...with exec' directives") } return nil @@ -400,7 +400,7 @@ func parseRouteDirective(line string) (RouteDirective, error) { return dir, err } default: - return dir, fmt.Errorf("invalid '%s' directive", tag) + return dir, fmt.Errorf("invalid '%s' directive (unexpected '%s')", tag, word) } } } |
