Skip to content

Commit

Permalink
Catch a bad log call
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Nov 3, 2010
1 parent 1998e7e commit c557931
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/node-yui3.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ YUI.add('get', function(Y) {
Y.log('URL: ' + url, 'info', 'get');
// doesn't need to be blocking, so don't block.
YUI.include(url, function(err) {
Y.log('Loaded: ' + url, 'info', 'get');
if (Y.config) {
Y.log('Loaded: ' + url, 'info', 'get');
}
if (err) {
Y.log('----------------------------------------------------------', 'error', 'nodejsYUI3');
if (err.stack) {
Expand Down

0 comments on commit c557931

Please sign in to comment.