summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mkha1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/mkha1.c b/tools/mkha1.c
index 97c7dcd..c61c725 100644
--- a/tools/mkha1.c
+++ b/tools/mkha1.c
@@ -41,6 +41,7 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
+#include <err.h>
#include "compat.h"
#include "buffer.h"
@@ -147,9 +148,9 @@ static char* check_value(ha_buffer_t* buf, char* value, const char* name)
}
if(value[0] == 0)
- errx("%s is empty");
+ errx(1, "%s is empty", name);
if(strchr(value, ':') != NULL)
- errx("%s must be a not contain colons");
+ errx(1, "%s must be a not contain colons", name);
return value;
}