diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_parse.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_parse.go b/src/c_parse.go index c26b4f5..faa8223 100644 --- a/src/c_parse.go +++ b/src/c_parse.go @@ -53,6 +53,7 @@ package main import ( "os" + "errors" "gopkg.in/yaml.v3" ) @@ -102,7 +103,7 @@ func c_read_yaml_file(file string, ui *HardUI) (*HostNode, error) { host.Height = 1200 } } else if host.Protocol > 1 { - return nil, nil + return nil, errors.New(file + ": unknown protocol") } if host.Quality > 2 { host.Quality = 2 |