add job creation error

use it on creation error, update tests
This commit is contained in:
2016-07-11 16:03:59 -07:00
parent c758fb55a6
commit bfe8799b90
3 changed files with 5 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ export default class Job extends events.EventEmitter {
})
.catch((err) => {
this.debug('Job creation failed', err);
this.emit(contstants.EVENT_JOB_ERROR, err);
this.emit(contstants.EVENT_JOB_CREATE_ERROR, err);
});
}