Throw the error back up if we don't have a console to log it to.

This commit is contained in:
David Ormsbee
2013-02-06 17:13:22 -05:00
parent bbf37ef9d0
commit e5fda33eff

View File

@@ -20,7 +20,10 @@
return module
catch error
console.error "Unable to load #{moduleType}: #{error.message}" if console
if window.console and console.log
console.error "Unable to load #{moduleType}: #{error.message}"
else
throw error
###
Load all modules on the page of the specified type.