Skip to content

Commit

Permalink
fix(cli): fix function binding
Browse files Browse the repository at this point in the history
  • Loading branch information
miyajan committed Oct 16, 2018
1 parent e5eee87 commit ada25ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cli.js
Expand Up @@ -68,7 +68,9 @@ class CommandLine {
}

const jflint = new JFLint(jenkinsUrl, username, password, csrfDisabled);
return jflint.lintJenkinsfile(jenkinsfile).then(this._interpretResult)
return jflint.lintJenkinsfile(jenkinsfile).then(res => {
this._interpretResult(res);
})
.catch(e => {
this._process.stderr.write(`${e.message}\n`);
this._process.exit(1);
Expand Down

0 comments on commit ada25ae

Please sign in to comment.