Skip to content

Commit

Permalink
feat: use kernel errorHandler to handle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 5, 2024
1 parent 34ec33c commit daa475e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/ace/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class BaseCommand extends AceBaseCommand {
: false

if (this.error && !errorHandled) {
this.logger.fatal(this.error)
await this.kernel.errorHandler.render(this.error, this.kernel)
}

return this.result
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"typescript": "^5.5.4"
},
"dependencies": {
"@adonisjs/ace": "^13.1.0",
"@adonisjs/ace": "^13.2.0",
"@adonisjs/application": "^8.3.1",
"@adonisjs/bodyparser": "^10.0.2",
"@adonisjs/config": "^5.0.2",
Expand Down

0 comments on commit daa475e

Please sign in to comment.