Merge "misleading source filename in error message"
diff --git a/functions b/functions
index 4203aa5..e9c6061 100644
--- a/functions
+++ b/functions
@@ -127,7 +127,7 @@
     local exitcode=$?
     errXTRACE=$(set +o | grep xtrace)
     set +o xtrace
-    local msg="[ERROR] $0:$1 $2"
+    local msg="[ERROR] ${BASH_SOURCE[2]}:$1 $2"
     echo $msg 1>&2;
     if [[ -n ${SCREEN_LOGDIR} ]]; then
         echo $msg >> "${SCREEN_LOGDIR}/error.log"