error map refactor

This commit is contained in:
JessonChan 2015-09-17 10:36:29 +08:00
parent bb776cc4cb
commit de20960458
1 changed files with 3 additions and 1 deletions

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
}