Description
command results in error, but completes as if successful
Steps to reproduce
touch empty.js && npx source-map-explorer empty.js && echo 'bug: process ended with non-zero exit code'
empty.js
Unable to find a source map.
See https://github.com/danvk/source-map-explorer/blob/master/README.md#generating-source-maps
bug: process ended with non-zero exit code
Files to reproduce
no files needed
Expected behavior
When a fatal error is encountered, it should exit the process with a non-zero exit code
Environment
OS: ubuntu
source-map-explorer Version: 2.3.1
Additional context
Other errors like failing to find the reference sourcemap file should result in a non-zero exit code
npx source-map-explorer dist/chrome/common.js && echo 'bug: process ended with non-zero exit code'
dist/chrome/common.js
An error occurred while trying to read the map file at /home/xyz/Development/metamask-extension2/dist/sourcemaps/common.js.map
Error: ENOENT: no such file or directory, open '/home/xyz/Development/metamask-extension2/dist/sourcemaps/common.js.map'
bug: process ended with non-zero exit code
Description command results in error, but completes as if successful
Steps to reproduce
Files to reproduce no files needed
Expected behavior When a fatal error is encountered, it should exit the process with a non-zero exit code
Environment
Additional context Other errors like failing to find the reference sourcemap file should result in a non-zero exit code