summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Colin <ac@alexeicolin.com>2014-12-28 22:51:30 +0100
committerDave Reisner <dreisner@archlinux.org>2014-12-28 23:45:31 +0100
commit715a37b0d6cbee360c00ee2e23e94a772a50a1f0 (patch)
tree9538649a654d0c114169f44211ab08557879e352
parent9398ae7fcbc2af9c788089ba72ddcd610b8df3a9 (diff)
downloadmkinitcpio-715a37b0d6cbee360c00ee2e23e94a772a50a1f0.tar.gz
mkinitcpio-715a37b0d6cbee360c00ee2e23e94a772a50a1f0.tar.xz
mkinitcpio: expose syntax errors in preset files
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index d2d7ea8..713c4b4 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -261,7 +261,7 @@ process_preset() (
printf -v preset '%s/%s.preset' "$_d_presets" "$preset"
fi
- . "$preset" 2>/dev/null || die "Preset not found: \`%s'" "$preset"
+ . "$preset" || die "Failed to load preset: \`%s'" "$preset"
# Use -m and -v options specified earlier
(( _optquiet )) || preset_mkopts+=(-v)