From 87db9dc9302213f5d9df7d153efbeca27f3e76cc Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 29 Jan 2024 20:20:20 +0100 Subject: all c_dies taken care of --- src/c_parse.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/c_parse.go') 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 -- cgit v1.2.3