Fix error propagation all the way out of processStringSync.
This commit is contained in:
parent
4fb870e449
commit
c247b194c2
|
@ -231,7 +231,11 @@ export function processStringSync(
|
|||
return process(string)
|
||||
}
|
||||
} catch (err: any) {
|
||||
return input
|
||||
const { noThrow = true } = opts
|
||||
if (noThrow) {
|
||||
return input
|
||||
}
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue