build: better error output on js pack