aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-07-21 16:26:06 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-07-21 16:27:48 +0200
commite03bc36f63c0031e742db1619bb221fe36461ceb (patch)
tree9e51d1a2aea5bafb0c6c1c6a40ebc829dce0c858
parentd3b34cd482a38a72987ad5136073099acca36537 (diff)
downloadfiv-e03bc36f63c0031e742db1619bb221fe36461ceb.tar.gz
fiv-e03bc36f63c0031e742db1619bb221fe36461ceb.tar.xz
fiv-e03bc36f63c0031e742db1619bb221fe36461ceb.zip
Print errors from launching new instances
-rw-r--r--fiv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fiv.c b/fiv.c
index 7599105..b190922 100644
--- a/fiv.c
+++ b/fiv.c
@@ -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