diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-09-27 17:30:42 +0300 |
---|---|---|
committer | Ludovic Henry <luhenry@microsoft.com> | 2018-09-27 17:30:42 +0300 |
commit | aebef84fa2c88a202383e96dabb9f5693e8485b1 (patch) | |
tree | fede946c4aa2b0c75813394af3431c8749650452 | |
parent | 59f2dbf28b0664e7934e96d87d33188828403cb8 (diff) |
[merp] Fix return value handling of posix_spawn (#10828)
-rw-r--r-- | mono/utils/mono-merp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mono/utils/mono-merp.c b/mono/utils/mono-merp.c index 9a959a4d3e2..348d4d94fa1 100644 --- a/mono/utils/mono-merp.c +++ b/mono/utils/mono-merp.c @@ -294,10 +294,7 @@ mono_merp_send (const char *merpFile, const char *crashLog, const char *werXml) // // Create process to launch merp gui application const char *argvOpen[] = {"/usr/bin/open", "-a", config.merpGUIPath, NULL}; int status = posix_spawn(NULL, "/usr/bin/open", NULL, NULL, (char *const*)(argvOpen), NULL); - - // // FIXME error handling - if (status == 0) - g_error ("Could not start merp\n"); + g_assertf (status == 0, "Could not start the Microsoft Error Reporting client (at %s). Error code: %d\n", config.merpGUIPath, status); return; } |