summaryrefslogtreecommitdiff
path: root/src/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index adb3083..b290855 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -82,11 +82,12 @@ static void *worker_func( void *thread_data )
gchar *argv[] = { worker->command, NULL };
+ GError *error = NULL;
gboolean ret = g_spawn_async_with_pipes( NULL,
argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL,
- NULL, &wed->pid, NULL, &wed->out, &wed->err, NULL );
+ NULL, &wed->pid, NULL, &wed->out, &wed->err, &error );
if( !ret ) {
- g_error( "Starting worker failed" );
+ fprintf( stderr, "ERROR: Starting worker failed: %s\n", error->message );
return NULL;
}