Skip to content

Commit d12c738

Browse files
☈kingrking@sharpsaw.org
☈king
authored andcommitted
Better debug output.
1 parent 1c810e7 commit d12c738

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/scripting

+8-5
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,14 @@ alias sourceif=...sourceif # Backwards compatibility.
8282
find $d -name '.*.sw?' -exec echo '{}' is probably going to be trouble. \;
8383
source <(cat $d/*)
8484
if [ $? != 0 ]; then
85-
...warn "Oops. Had a problem. Trying `pwd`/$d/* individually to debug:"
86-
for n in $d/*; do
87-
...warn $n
88-
...source $n
89-
done
85+
(
86+
...traceon
87+
...warn "Oops. Had a problem. Trying $d/* individually to debug:"
88+
for n in $d/*; do
89+
...source $n
90+
...debug3 "(Exit code: $?)"
91+
done
92+
)
9093
fi
9194
}
9295
# vim:ft=zsh

0 commit comments

Comments
 (0)