summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-05-25 15:52:57 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-05-25 15:52:57 (EDT)
commit49cde26149b3aab7a2c7ca4cef2c827f6eb1256d (patch)
tree4389593538c7a3c5e25cccc9db10019b70ecf243 /lib
parented6cfd777caa1b668ecbd238c8a17eb89e1ffaf6 (diff)
lib/block.sh: Fix error()/get_msg() calls
Diffstat (limited to 'lib')
-rw-r--r--lib/block.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/block.sh b/lib/block.sh
index e25b4e7..3911c3a 100644
--- a/lib/block.sh
+++ b/lib/block.sh
@@ -44,12 +44,12 @@ block_mount()
rand
dir="$(get_vardata_dir 'mount')/block-$(printf '%010d' ${rand_x})"
if ! mkdir "${dir}"; then
- error 2 "$(get_msg 'block_mkdir_fail' "${dir}")"
+ error 2 "$(get_msg 'block_mkdir_fail')" "${dir}"
fi
if ! mount "${dev}" "${dir}"; then
rmdir "${dir}"
- error 2 "$(get_msg 'block_mount_fail' "${dev}")"
+ error 2 "$(get_msg 'block_mount_fail')" "${dev}"
fi
printf '%s' "${dir}"
@@ -74,11 +74,11 @@ block_umount()
done
if ${timed_out}; then
- error 2 "$(get_msg 'block_umount_fail' "${dir}")"
+ error 2 "$(get_msg 'block_umount_fail')" "${dir}"
fi
if ! rmdir "${dir}"; then
- error 2 "$(get_msg 'block_rmdir_fail' "${dir}")"
+ error 2 "$(get_msg 'block_rmdir_fail')" "${dir}"
fi
return 0