diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-07-21 16:26:06 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-07-21 16:27:48 +0200 |
commit | e03bc36f63c0031e742db1619bb221fe36461ceb (patch) | |
tree | 9e51d1a2aea5bafb0c6c1c6a40ebc829dce0c858 | |
parent | d3b34cd482a38a72987ad5136073099acca36537 (diff) | |
download | fiv-e03bc36f63c0031e742db1619bb221fe36461ceb.tar.gz fiv-e03bc36f63c0031e742db1619bb221fe36461ceb.tar.xz fiv-e03bc36f63c0031e742db1619bb221fe36461ceb.zip |
Print errors from launching new instances
-rw-r--r-- | fiv.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -873,9 +873,11 @@ spawn_uri(const char *uri) { char *argv[] = {PROJECT_NAME, (char *) uri, NULL}; GError *error = NULL; - g_spawn_async( - NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error); - g_clear_error(&error); + if (!g_spawn_async( + NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error)) { + g_warning("%s", error->message); + g_error_free(error); + } } static void |