summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/imagetool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/imagetool.c b/tools/imagetool.c
index 688169b3a81..e1021f44f5a 100644
--- a/tools/imagetool.c
+++ b/tools/imagetool.c
@@ -71,6 +71,11 @@ int imagetool_verify_print_header(
}
}
+ if (retval != 0) {
+ fprintf(stderr, "%s: cannot detect image type\n",
+ params->cmdname);
+ }
+
return retval;
}