Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix doc on SetErrorHandler
See discussion at go-aah/aah#261.
  • Loading branch information
RB-Lab authored Mar 18, 2021
commit f62cb2cbf7082bcd73f2e8da614913b60d381c26
5 changes: 4 additions & 1 deletion error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ func AppErrorHandler(ctx *aah.Context, err *aah.Error) bool {

// Register App Error Handler at `init.go` file
func init() {
aah.App().SetErrorHandler(util.AppErrorHandler)
app := aah.App()
app.OnStart(func(e *aah.Event) {
app.SetErrorHandler(util.AppErrorHandler)
})
}
```

Expand Down