src/templates/scaffolding/js/run.js
// Oops. curl.js indicates that your app failed to load correctly.

Oops. curl.js indicates that your app failed to load correctly.
Oops . curl . js indicates that your app failed to load correctly .
function fail (ex) {
		var el, msg;
		console.log('an error happened during loading :');
		console.log(ex.message);
		if (ex.stack) console.log(ex.stack);
		el = document.getElementById('errout');
		msg = 'An error occurred while loading: '
			+ ex.message
			+ '. See the console for more information.';
		if (el) {
			if ('textContent' in el) el.textContent = msg;
			else el.innerText = msg;
			el.style.display = '';
			document.documentElement.className = '';
		}
		else {
			throw msg;
		}
	}
function fail ( ex ) { var el , msg ; console . log ( 'an error happened during loading :' ) ; console . log ( ex . message ) ; if ( ex . stack ) console . log ( ex . stack ) ; el = document . getElementById ( 'errout' ) ; msg = 'An error occurred while loading: ' + ex . message + '. See the console for more information.' ; if ( el ) { if ( 'textContent' in el ) el . textContent = msg ; else el . innerText = msg ; el . style . display = '' ; document . documentElement . className = '' ; } else { throw msg ; } }
Oops.
Oops .
// There are many ways to handle errors. This is just a simple example.
 // Note: you cannot rely on any specific library or shim to be
 // loaded at this point.  Therefore, you must use standard DOM
 // manipulation and legacy IE equivalents.
 // inject the error message
 // clear styling that may be hiding the error message
