summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-05 16:47:48 -0400
committerJune McEnroe <june@causal.agency>2021-09-05 16:47:48 -0400
commit690526fec2fb7958b621f3f6ac77c9612f1e73dc (patch)
tree22f649fd3492b46a50874943bef0589ae990c071 /bounce.c
parentExpand on -s size option (diff)
downloadpounce-690526fec2fb7958b621f3f6ac77c9612f1e73dc.tar.gz
pounce-690526fec2fb7958b621f3f6ac77c9612f1e73dc.zip
Use EX_USAGE for all local configuration errors
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index 3976836..515f7d7 100644
--- a/bounce.c
+++ b/bounce.c
@@ -296,7 +296,7 @@ int main(int argc, char *argv[]) {
 			break; default:  return EX_USAGE;
 		}
 	}
-	if (blindReq & CapUnsupported) errx(EX_CONFIG, "unsupported capability");
+	if (blindReq & CapUnsupported) errx(EX_USAGE, "unsupported capability");
 	if (genPath) genCert(genPath, caPath);
 
 	if (bindPath[0]) {
@@ -330,7 +330,7 @@ int main(int argc, char *argv[]) {
 	if (!real) real = nick;
 	if (!clientAway) clientAway = "pounced :3";
 	if (clientPass && clientPass[0] != '$') {
-		errx(EX_CONFIG, "password must be hashed with -x");
+		errx(EX_USAGE, "password must be hashed with -x");
 	}
 
 	if (printCert) {