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 | |
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
-rw-r--r-- | src/c_exec.go | 2 | ||||
-rw-r--r-- | src/c_parse.go | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/c_exec.go b/src/c_exec.go index 5c13f72..129ff89 100644 --- a/src/c_exec.go +++ b/src/c_exec.go @@ -144,7 +144,7 @@ func c_format_cmd(host *HostNode, term string) { case 1: cmd_fmt = c_format_rdp(host) default: - c_die("type not found", nil) + c_die("you fucked up joe, users cant see this", nil) } if len(term) > 0 { // TODO: setsid 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 |