Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Only log to console if console defined #58

Merged
merged 1 commit into from Feb 2, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
View
@@ -633,7 +633,7 @@ var Haml;
var f = new Function("locals", escaper + str );
return f;
}catch(e){
- console.error(str);
+ if ( typeof(console) !== 'undefined' ) { console.error(str); }
throw e;
}
}