forked from mirrors/gecko-dev
Backed out changeset 61a47d6d5e26 (bug 1511078) Backed out changeset 006df494925a (bug 1511078) --HG-- rename : toolkit/xre/LauncherResult.h => browser/app/winlauncher/LauncherResult.h rename : mozglue/misc/NativeNt.h => browser/app/winlauncher/NativeNt.h rename : mozglue/tests/TestNativeNt.cpp => browser/app/winlauncher/test/TestNativeNt.cpp
22 lines
735 B
C++
22 lines
735 B
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#include "ErrorHandler.h"
|
|
|
|
namespace mozilla {
|
|
|
|
void HandleLauncherError(const LauncherError& aError) {
|
|
// This is a placeholder error handler. We'll add telemetry and a fallback
|
|
// error log in future revisions.
|
|
WindowsError::UniqueString msg = aError.mError.AsString();
|
|
if (!msg) {
|
|
return;
|
|
}
|
|
|
|
::MessageBoxW(nullptr, msg.get(), L"Firefox", MB_OK | MB_ICONERROR);
|
|
}
|
|
|
|
} // namespace mozilla
|