Merge pull request #7231 from miniak/default-error-mode

Fix ELECTRON_DEFAULT_ERROR_MODE
This commit is contained in:
Cheng Zhao 2016-09-19 15:44:52 +09:00 committed by GitHub
commit 1fd819e500

View file

@ -145,7 +145,7 @@ void NodeBindings::Initialize() {
// it back if user wants to show it. // it back if user wants to show it.
std::unique_ptr<base::Environment> env(base::Environment::Create()); std::unique_ptr<base::Environment> env(base::Environment::Create());
if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE")) if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE"))
SetErrorMode(0); SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX);
#endif #endif
} }