Skip to content

Commit 87411d3

Browse files
committed
common/null_blk: Make configuration failures easier to debug
1 parent 9a63986 commit 87411d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/null_blk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ _configure_null_blk() {
6868

6969
for param in "${params[@]}"; do
7070
local key="${param%%=*}" val="${param#*=}"
71-
echo "$val" > "$nullb_path/$key" || return 1
71+
if ! echo "$val" > "$nullb_path/$key"; then
72+
echo "Writing $val into $nullb_path/$key failed"
73+
return 1
74+
fi
7275
done
7376
}
7477

0 commit comments

Comments
 (0)