Always drop SEM_NOGPFAULTERRORBOX flag from error mode (enables WER if crashReporter is not started)
This commit is contained in:
parent
b14870d9a1
commit
5bfa898a02
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ void NodeBindings::Initialize() {
|
||||||
// uv_init overrides error mode to suppress the default crash dialog, bring
|
// uv_init overrides error mode to suppress the default crash dialog, bring
|
||||||
// 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 (is_browser_ || env->HasVar("ELECTRON_DEFAULT_ERROR_MODE"))
|
||||||
SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX);
|
SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue