aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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