1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 03:50:51 +00:00

error map refactor

This commit is contained in:
JessonChan 2015-09-17 10:36:29 +08:00
parent bb776cc4cb
commit de20960458

View File

@ -33,7 +33,9 @@ func registerDefaultErrorHandler() error {
"503": serviceUnavailable,
"504": gatewayTimeout,
} {
ErrorHandler(e, h)
if _, ok := ErrorMaps[e]; !ok {
ErrorHandler(e, h)
}
}
return nil
}