Browse Source

libgis: do_spawn() notify which command failed and why

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74061 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 years ago
parent
commit
857fb7bb8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/gis/spawn.c

+ 1 - 1
lib/gis/spawn.c

@@ -686,7 +686,7 @@ static int do_spawn(struct spawn *sp, const char *command)
 	do_bindings(sp->bindings, sp->num_bindings);
 	do_bindings(sp->bindings, sp->num_bindings);
 
 
 	execvp(command, (char **)sp->args);
 	execvp(command, (char **)sp->args);
-	G_warning(_("Unable to execute command"));
+	G_warning(_("Unable to execute command '%s': %s"), command, strerror(errno));
 	_exit(127);
 	_exit(127);
     }
     }