From c270ae9d55ab2a4a737b6c6a4847f23b0ee74dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tony=20Tk=C3=A1=C4=8Dik?= Date: Thu, 24 Aug 2023 10:55:16 +0200 Subject: [PATCH] Formatted error reporting in nuxsh --- inc/nux/nuxsh.inc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/nux/nuxsh.inc.sh b/inc/nux/nuxsh.inc.sh index 294f893..23f5a6c 100644 --- a/inc/nux/nuxsh.inc.sh +++ b/inc/nux/nuxsh.inc.sh @@ -120,7 +120,7 @@ nux.nuxsh.language.def() { prepend=$_namespace; fi if [ -z "$prepend" ] ; then - nudsl.process.fail "undefined prefix: $prefix"; + nux.dsl.process.fail "undefined prefix: $prefix"; fi echo "$prepend$identifier" else @@ -175,6 +175,7 @@ nux.nuxsh.language.def() { for arg in ${args//,/ }; do echo "${indent} local $arg="'"$1"'";shift;" echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";" + echo "${indent} nux.log trace ' ' rest: " '"$@";' done } @@ -189,6 +190,7 @@ nux.nuxsh.language.def() { for arg in ${args//,/ }; do echo "${indent} local $arg="'"$1"'";shift;" echo "${indent} nux.log trace ' ' arg $arg: "'$'$arg";" + echo "${indent} nux.log trace ' ' rest: " '"$@";' done }