scripting: more verbose error messages