Skip to content

Commit

Permalink
refactor: logging error with source map
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamas Muncsan authored and madbence committed Oct 9, 2021
1 parent 6d7510c commit 151ff2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 5 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"fast-glob": "^3.2.2",
"graphlib": "^2.1.8",
"minimist": "^1.2.5",
"source-map-support": "^0.5.20",
"strip-ansi": "^6.0.0",
"text-table": "^0.2.0",
"yaml": "^1.8.2"
Expand Down
3 changes: 2 additions & 1 deletion src/lint.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node

import 'source-map-support/register';
import minimist from 'minimist';
import watch from './watch';
import run from './runner';
Expand Down Expand Up @@ -82,7 +83,7 @@ $ tekton-lint --watch '**/*.yaml'
}
return 0;
}, (error) => {
console.error(error.message);
console.error(error);
return 1;
})
.then((code) => {
Expand Down

0 comments on commit 151ff2c

Please sign in to comment.