summaryrefslogtreecommitdiffstats
path: root/src/block.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/block.sh')
-rw-r--r--src/block.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/block.sh b/src/block.sh
index fb6b921..feab865 100644
--- a/src/block.sh
+++ b/src/block.sh
@@ -31,7 +31,8 @@ check_block()
local dev="${1}"
if ! [ -b "${dev}" ]; then
- error 2 "$(get_msg 'block_device_invalid')" "${dev}"
+ error "$(get_msg 'block_device_invalid')" "${dev}"
+ return 1
fi
}