From 5bfa898a02aee9aabda1268c19cd4a2085fcb257 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Thu, 29 Sep 2016 13:57:41 -0700 Subject: [PATCH] Always drop SEM_NOGPFAULTERRORBOX flag from error mode (enables WER if crashReporter is not started) --- atom/common/node_bindings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/common/node_bindings.cc b/atom/common/node_bindings.cc index 1e3fac387..a049be23a 100644 --- a/atom/common/node_bindings.cc +++ b/atom/common/node_bindings.cc @@ -144,7 +144,7 @@ void NodeBindings::Initialize() { // uv_init overrides error mode to suppress the default crash dialog, bring // it back if user wants to show it. std::unique_ptr env(base::Environment::Create()); - if (env->HasVar("ELECTRON_DEFAULT_ERROR_MODE")) + if (is_browser_ || env->HasVar("ELECTRON_DEFAULT_ERROR_MODE")) SetErrorMode(GetErrorMode() & ~SEM_NOGPFAULTERRORBOX); #endif } -- 2.34.1