formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

fix(@formatjs/cli): fix `throws` option not being passed to main method #665

Closed santialbo closed 4 years ago

santialbo commented 4 years ago

This commit 75399368f6ddd591b3fbe9c3ed6d9a30bea3586f introduced the --throws option but it's not being passed to the extract method, so currently there is no way of getting the cli to throw on errors. This pr just passes the option to the main method as it probably was intended by the original author.

longlho commented 4 years ago

Thanks a lot for your contributions!