Commit 0dd9c24e by Victor Shnayder

Merge pull request #1447 from MITx/debug/dave/pearson_js_error

Throw the error back up if we don't have a console to log it to.
parents 92eb88d4 e5fda33e
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment