1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00

Formatted error reporting in nuxsh

This commit is contained in:
Tony Tkáčik 2023-08-24 10:55:16 +02:00
parent 9e2142ea53
commit c270ae9d55

View file

@ -120,7 +120,7 @@ nux.nuxsh.language.def() {
prepend=$_namespace; prepend=$_namespace;
fi fi
if [ -z "$prepend" ] ; then if [ -z "$prepend" ] ; then
nudsl.process.fail "undefined prefix: $prefix"; nux.dsl.process.fail "undefined prefix: $prefix";
fi fi
echo "$prepend$identifier" echo "$prepend$identifier"
else else
@ -175,6 +175,7 @@ nux.nuxsh.language.def() {
for arg in ${args//,/ }; do for arg in ${args//,/ }; do
echo "${indent} local $arg="'"$1"'";shift;" echo "${indent} local $arg="'"$1"'";shift;"
echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";" echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";"
echo "${indent} nux.log trace ' ' rest: " '"$@";'
done done
} }
@ -189,6 +190,7 @@ nux.nuxsh.language.def() {
for arg in ${args//,/ }; do for arg in ${args//,/ }; do
echo "${indent} local $arg="'"$1"'";shift;" echo "${indent} local $arg="'"$1"'";shift;"
echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";" echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";"
echo "${indent} nux.log trace ' ' rest: " '"$@";'
done done
} }