aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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