Add error output for requirejs optimization failure.

Also see https://github.com/jrburke/requirejs/pull/568.
build-require.js works again.