gspawn: Improve error message when dup fails

This error message is no longer accurate now that we allow arbitrary fd
remapping.
This commit is contained in:
Michael Catanzaro 2021-12-14 13:36:25 -06:00
parent ac8d1aa247
commit 33f15d9dd0

View File

@ -2451,7 +2451,7 @@ fork_exec (gboolean intermediate_child,
g_set_error (error, g_set_error (error,
G_SPAWN_ERROR, G_SPAWN_ERROR,
G_SPAWN_ERROR_FAILED, G_SPAWN_ERROR_FAILED,
_("Failed to redirect output or input of child process (%s)"), _("Failed to duplicate file descriptor for child process (%s)"),
g_strerror (buf[1])); g_strerror (buf[1]));
break; break;