diff --git a/src/appdb.js b/src/appdb.js index 6b24fc217..1b93d7a7e 100644 --- a/src/appdb.js +++ b/src/appdb.js @@ -40,7 +40,6 @@ exports = module.exports = { RSTATE_PENDING_START: 'pending_start', RSTATE_PENDING_STOP: 'pending_stop', RSTATE_STOPPED: 'stopped', // app stopped by use - RSTATE_ERROR: 'error', // run codes (keep in sync in UI) HEALTH_HEALTHY: 'healthy', diff --git a/src/apptask.js b/src/apptask.js index c934ef24f..8d182e120 100644 --- a/src/apptask.js +++ b/src/apptask.js @@ -860,10 +860,7 @@ function uninstall(app, callback) { function runApp(app, callback) { startContainer(app, function (error) { - if (error) { - debugApp(app, 'Error starting container : %s', error); - return updateApp(app, { runState: appdb.RSTATE_ERROR }, callback); - } + if (error) return callback(error); updateApp(app, { runState: appdb.RSTATE_RUNNING }, callback); });