aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-29 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-29 20:20:20 +0100
commit87db9dc9302213f5d9df7d153efbeca27f3e76cc (patch)
tree70696a2effd400d2d3d93b15fc8f41a4b258621f /src
parentmkay (diff)
downloadhardflip-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 'src')
-rw-r--r--src/c_exec.go2
-rw-r--r--src/c_parse.go3
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