fix: recognize statusCode in gotErrorHandler

pull/156/head
Amio 2018-09-09 12:15:54 +08:00
rodzic 007977e9a2
commit 8b15a91049
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -33,9 +33,9 @@ const gotErrorHandler = (service, paramsPath, err) => {
let status = 'unknown'
if (err.code === 'ETIMEDOUT') {
status = 'timeout'
} else if (err.statusCode === '404') {
} else if (err.statusCode === 404) {
status = 'not found'
} else if (err.statusCode === '503') {
} else if (err.statusCode === 503) {
status = 'unavailable'
}