mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02: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?
|
||||
return callback(error)
|
||||
if res.statusCode == 404
|
||||
logger.log url: url, "got 404 from web api"
|
||||
return callback null, null
|
||||
if res.statusCode >= 200 and res.statusCode < 300
|
||||
return callback null, body
|
||||
|
||||
Reference in New Issue
Block a user