aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_getparam.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 17a6f5567..6d6cac3db 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -2526,6 +2526,10 @@ ParameterError parse_args(struct GlobalConfig *global, int argc,
else
result = PARAM_NO_MEM;
}
+ else {
+ errorf(global, "missing URL before --next\n");
+ result = PARAM_BAD_USE;
+ }
}
else if(!result && passarg)
i++; /* we're supposed to skip this */