Interface.prototype.requireConnection = function() {
- if (!this.client) throw Error('App isn\'t running... Try `run()` instead');
+ if (!this.client) throw Error('App isn\'t running... Try `run` instead');
};
Interface.prototype.controlEval = function(code, context, filename, callback) {
// Run script
Interface.prototype.run = function() {
if (this.child) {
- throw Error('App is already running... Try `restart()` instead');
+ throw Error('App is already running... Try `restart` instead');
} else {
this.trySpawn();
}
// Restart script
Interface.prototype.restart = function() {
- if (!this.child) throw Error('App isn\'t running... Try `run()` instead');
+ if (!this.child) throw Error('App isn\'t running... Try `run` instead');
var self = this;