/**
 * Copyright (c) 2014, Tidepool Project
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the associated License, which is identical to the BSD 2-Clause
 * License as published by the Open Source Initiative at opensource.org.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the License for more details.
 * 
 * You should have received a copy of the License along with this program; if
 * not, you can obtain one from Tidepool Project at tidepool.org.
 */

/* global app */
app.start();
@@ -671,16 +671,24 @@
  app */%0A
+try %7B%0A  
 app.star
@@ -691,8 +691,240 @@
 start();
+%0A%7D%0Acatch (e) %7B%0A  var error = %5B%0A    'Could not start app,',%0A    'please check if source was compiled successfully',%0A    '(Browserify, React JSX Transform).'%0A  %5D.join(' ');%0A  throw new Error(error + ' Original error: ' + e.message);%0A%7D

Add better error message if app failed to compile