summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debeagle.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/debeagle.sh b/debeagle.sh
index dad40db..6b9b575 100644
--- a/debeagle.sh
+++ b/debeagle.sh
@@ -58,8 +58,7 @@ main()
printf 'Installing to %s\n' \
"$(get_block_dev_name "${target#/dev/}")"
else
- printf 'Device %s not found\n' "${target}" >&2
- exit 1
+ error 1 'Device %s not found\n' "${target}"
fi
}