diff options
author | Joe <rbo@gmx.us> | 2024-01-29 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-29 20:20:20 +0100 |
commit | 87db9dc9302213f5d9df7d153efbeca27f3e76cc (patch) | |
tree | 70696a2effd400d2d3d93b15fc8f41a4b258621f /src/c_parse.go | |
parent | mkay (diff) | |
download | hardflip-87db9dc9302213f5d9df7d153efbeca27f3e76cc.tar.gz hardflip-87db9dc9302213f5d9df7d153efbeca27f3e76cc.tar.bz2 hardflip-87db9dc9302213f5d9df7d153efbeca27f3e76cc.tar.xz hardflip-87db9dc9302213f5d9df7d153efbeca27f3e76cc.tar.zst hardflip-87db9dc9302213f5d9df7d153efbeca27f3e76cc.zip |
all c_dies taken care of
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 |