mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
when the uploaded file is not a zip, warn instead of error
This commit is contained in:
parent
8d6370026e
commit
779336e5b0
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue