scripts/functions.bash: update helper function (error/info)