mirror of
https://github.com/desktop/desktop
synced 2024-10-31 11:07:25 +00:00
Don’t exit immediately after a bad viewBox match
This commit is contained in:
parent
89f293f251
commit
9d0735b7fc
1 changed files with 3 additions and 2 deletions
|
@ -64,8 +64,9 @@ xml2js.parseString(file, function(err, result: XML2JSResult) {
|
|||
const viewBoxMatch = viewBoxRe.exec(viewBox)
|
||||
|
||||
if (!viewBoxMatch) {
|
||||
console.error(`Unexpected viewBox format for ${id}`)
|
||||
process.exit(1)
|
||||
console.error(`*** ERROR! Unexpected viewBox format for ${id}`)
|
||||
process.exitCode = 1
|
||||
return
|
||||
}
|
||||
|
||||
const [, w, h] = viewBoxMatch
|
||||
|
|
Loading…
Reference in a new issue