mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Log a message when the web api produces a 404 response.
This commit is contained in:
@@ -14,6 +14,7 @@ module.exports = WebApiManager =
|
|||||||
if error?
|
if error?
|
||||||
return callback(error)
|
return callback(error)
|
||||||
if res.statusCode == 404
|
if res.statusCode == 404
|
||||||
|
logger.log url: url, "got 404 from web api"
|
||||||
return callback null, null
|
return callback null, null
|
||||||
if res.statusCode >= 200 and res.statusCode < 300
|
if res.statusCode >= 200 and res.statusCode < 300
|
||||||
return callback null, body
|
return callback null, body
|
||||||
|
|||||||
Reference in New Issue
Block a user