about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-04 10:15:58 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-04 10:15:58 -0400
commit712d7fea6bf52eec103edf78381288c6f3d61428 (patch)
treea790ca5182fa0fbafd81f50fd595228a1cb7e82c /xombrero.c
parentdc91a0461fc11d506dc2292a1ab46a313c455a4d (diff)
downloadxombrero-712d7fea6bf52eec103edf78381288c6f3d61428.tar.gz
Show a warning message when executing run_script, and make sure %s in
a format string actualy has something to print.
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xombrero.c b/xombrero.c
index c282d5b..baaecde 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -1437,9 +1437,11 @@ run_page_script(struct tab *t, struct karg *args)
 	sv[2] = NULL;
 	if (!g_spawn_async(NULL, sv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL,
 	    NULL, NULL)) {
-		show_oops(t, "%s: could not spawn process", __func__);
+		show_oops(t, "%s: could not spawn process: %s %s", __func__,
+		    sv[0], sv[1]);
 		return (1);
-	}
+	} else
+		show_oops(t, "running: %s %s", sv[0], sv[1]);
 
 	return (0);
 }
@@ -5017,7 +5019,8 @@ run_download_mimehandler(char *mime_type, char *file)
 	sv[2] = NULL;
 	if (!g_spawn_async(NULL, sv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL,
 	    NULL, NULL)) {
-		show_oops(NULL, "%s: could not spawn process");
+		show_oops(NULL, "%s: could not spawn process: %s %s", __func__,
+		    sv[0], sv[1]);
 		return (1);
 	}
 	return (0);