Closed arpodungge closed 4 years ago
@arpodungge It seems I need to update the documentation. Please use OnStart
event, update your code to
app := aah.App()
app.OnStart(func(e *aah.Event) {
app.SetErrorHandler(AppErrorHandler)
})
I'm closing this one. Please let me know.
Using aah v0.12.3
I'm creating a new api project with
aah new
I've found an issue when i try to create centralized error handler by creatingAppErrorHandler
function and register it ininit.go
by following the instruction from https://docs.aahframework.org/v0.12/error-handling.html#registering-centralized-error-handleran error occurred when i run it with
aah run
:Thanks