Skip to content
Browse files

Merge pull request #508 from drewfish/show-bad-file

better error message for javascript parse errors
  • Loading branch information...
2 parents 1d390ae + a3bb463 commit a482e5ed380692f6437598fe68591586d4f9dadf @drewfish drewfish committed Sep 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/app/addons/rs/yui.server.js
View
2 lib/app/addons/rs/yui.server.js
@@ -626,7 +626,7 @@ YUI.add('addon-rs-yui', function(Y, NAME) {
libvm.runInNewContext(file, ctx, res.source.fs.fullPath);
} catch (e) {
yui = null;
- Y.log(e.message + '\n' + e.stack, 'error', NAME);
+ Y.log('failed to parse javascript file ' + res.source.fs.fullPath, 'error', NAME);
}
if (yui) {
res.yui = Y.merge(res.yui || {}, yui);

0 comments on commit a482e5e

Please sign in to comment.
Something went wrong with that request. Please try again.