1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:10:54 +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,8 +33,10 @@ func registerDefaultErrorHandler() error {
"503": serviceUnavailable,
"504": gatewayTimeout,
} {
if _, ok := ErrorMaps[e]; !ok {
ErrorHandler(e, h)
}
}
return nil
}