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