summaryrefslogtreecommitdiff
path: root/t/helper/test-progress.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-progress.c')
-rw-r--r--t/helper/test-progress.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/helper/test-progress.c b/t/helper/test-progress.c
index 9265e6ab7c..50fd3be3da 100644
--- a/t/helper/test-progress.c
+++ b/t/helper/test-progress.c
@@ -63,10 +63,11 @@ int cmd__progress(int argc, const char **argv)
die("invalid input: '%s'\n", line.buf);
progress_test_ns = test_ms * 1000 * 1000;
display_throughput(progress, byte_count);
- } else if (!strcmp(line.buf, "update"))
+ } else if (!strcmp(line.buf, "update")) {
progress_test_force_update();
- else
+ } else {
die("invalid input: '%s'\n", line.buf);
+ }
}
stop_progress(&progress);
strbuf_release(&line);