unit.js: better error printing, if filename is null use location.href
unit.js: better error printing, if filename is null use location.href

kig/canvas3d-tests,kig/canvas3d-tests,kig/canvas3d-tests,kig/canvas3d-tests,kig/canvas3d-tests