summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/partition/makefs.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/partition/makefs.c b/src/partition/makefs.c
index 128aa41044..97f50c9033 100644
--- a/src/partition/makefs.c
+++ b/src/partition/makefs.c
@@ -76,15 +76,12 @@ static int run(int argc, char *argv[]) {
log_info("%s is not a block device.", device);
r = probe_filesystem(device, &detected);
+ if (r == -EUCLEAN)
+ return log_error_errno(r, "Ambiguous results of probing for file system on \"%s\", refusing to proceed.", device);
if (r < 0)
- return log_warning_errno(r,
- r == -EUCLEAN ?
- "Cannot reliably determine probe \"%s\", refusing to proceed." :
- "Failed to probe \"%s\": %m",
- device);
-
+ return log_error_errno(r, "Failed to probe \"%s\": %m", device);
if (detected) {
- log_info("%s is not empty (type %s), exiting", device, detected);
+ log_info("'%s' is not empty (contains file system of type %s), exiting.", device, detected);
return 0;
}