Display error string if unable to write a crash log.

Sat, 19 Nov 2016 22:57:18 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 19 Nov 2016 22:57:18 +0200
changeset 1060
940b3e565ac3
parent 1059
7800dbb00632
child 1061
273333700685

Display error string if unable to write a crash log.

src/crashCatcher.cpp file | annotate | diff | comparison | revisions
--- a/src/crashCatcher.cpp	Fri Nov 18 03:01:38 2016 +0200
+++ b/src/crashCatcher.cpp	Sat Nov 19 22:57:18 2016 +0200
@@ -96,12 +96,12 @@
 		}
 		else
 		{
-			printf("Unable to write a crashlog.\n");
+			printf("Unable to write a crashlog: %s\n", file.errorString().toUtf8().constData());
 		}
 	}
 	else
 	{
-		printf("Unable to write commands to temporary file.");
+		printf("Unable to write commands to temporary file: %s", commandsFile.errorString().toUtf8().constData());
 	}
 
 	finalAbort();

mercurial