when the uploaded file is not a zip, warn instead of error

This commit is contained in:
Shane Kilkelly 2017-04-13 15:12:54 +01:00
parent 8d6370026e
commit 779336e5b0

View file

@ -33,7 +33,7 @@ module.exports = ArchiveManager =
unzip.on "close", (exitCode) -> unzip.on "close", (exitCode) ->
if error? if error?
error = new Error(error) error = new Error(error)
logger.error err:error, source: source, "error checking zip size" logger.warn err:error, source: source, "error checking zip size"
lines = output.split("\n") lines = output.split("\n")
lastLine = lines[lines.length - 2]?.trim() lastLine = lines[lines.length - 2]?.trim()