We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extract
throws
processFile
https://github.com/formatjs/formatjs/blob/c063f7bc4530af7ec6c5b68000887a3f55948f6e/packages/cli-lib/src/extract.ts#L200C18
try { const source = await readFile(fn, 'utf8') return processFile(source, fn, opts) } catch (e) { if (throws) { throw e } else { warn(String(e)) } }
In this code exceptions thrown in processFile will not be caught because processFile is an async function.
Is this the intention or is it a bug?
try { const source = await readFile(fn, 'utf8') return Promise.resolve(await processFile(source, fn, opts)); } catch (e) { if (throws) { throw e } else { warn(String(e)) } }
The text was updated successfully, but these errors were encountered:
2195fc0
No branches or pull requests
https://github.com/formatjs/formatjs/blob/c063f7bc4530af7ec6c5b68000887a3f55948f6e/packages/cli-lib/src/extract.ts#L200C18
In this code exceptions thrown in
processFile
will not be caught becauseprocessFile
is an async function.Is this the intention or is it a bug?
The text was updated successfully, but these errors were encountered: