1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 20:02:58 +01:00
metamask-extension/development
Elliot Winkler b1b4e64ad0
Prevent Browserify error from being swallowed (#13647)
If an error occurs while running Browserify, the stream that Browserify
creates will emit an `error` event. However, this event is not being
handled, so Node will catch it instead. But the error message it
produces is very nebulous, as it merely spits out the stream object and
completely ignores the actual error that occurred. So this commit
listens for the `error` event and outputs the error.

One note here is that when we are outputting the error, we must get
around a bug that exists in Endo where if you pass an Error object to
`console.{log,error,info,debug}` then you will just see `{}` on-screen.
We get around this by printing `err.stack`.
2022-02-17 13:47:50 -07:00
..
build Prevent Browserify error from being swallowed (#13647) 2022-02-17 13:47:50 -07:00
highlights
lib
states
announcer.js
chromereload.js
create-static-server.js
empty.js
generate-lavamoat-policies.sh
generate-migration.sh
gource-viz.sh
jest.config.js
metamaskbot-build-announce.js
missing-locale-strings.js
mock-3box.js
mock-e2e.js
mock-segment.js
README.md
run-ganache.sh
sentry-publish.js
sentry-upload-artifacts.sh
shellcheck.sh
show-deps-install-scripts.js
source-map-explorer.sh
sourcemap-validator.js
static-server.js
stream-flat-map.js
verify-locale-strings.js

Development

Several files which are needed for developing on MetaMask.

Usually each file or directory contains information about its scope / usage.