From 1b206f37d0f9b61ebc908f58b33515c055ff1a75 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 3 Dec 2016 04:22:09 +0100 Subject: add the SalAbort message to the crash reporter Change-Id: Ibe08034bcf2a73fb12562c87c2898db1e974376c Reviewed-on: https://gerrit.libreoffice.org/31577 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- vcl/win/app/salinst.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl/win') diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx index cee4e5419d92..94ae96d53608 100644 --- a/vcl/win/app/salinst.cxx +++ b/vcl/win/app/salinst.cxx @@ -43,6 +43,8 @@ #include "salimestatus.hxx" #include "salsys.hxx" +#include + #if defined _MSC_VER #ifndef min #define min(a,b) (((a) < (b)) ? (a) : (b)) @@ -100,6 +102,7 @@ void SalAbort( const OUString& rErrorText, bool ) } else { + CrashReporter::AddKeyValue("AbortMessage", rErrorText); // make sure crash reporter is triggered RaiseException( 0, EXCEPTION_NONCONTINUABLE, 0, nullptr ); FatalAppExitW( 0, reinterpret_cast(rErrorText.getStr()) ); -- cgit