From 49cde26149b3aab7a2c7ca4cef2c827f6eb1256d Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 25 May 2015 15:52:57 -0400 Subject: lib/block.sh: Fix error()/get_msg() calls --- (limited to 'lib') 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 -- cgit v0.9.1