improve error reporting
This commit is contained in:
parent
499ad4c751
commit
72aecb23f0
3
term.c
3
term.c
|
@ -98,7 +98,7 @@ int main(int argc, char **argv) {
|
||||||
VtePty *pty = vte_terminal_pty_new(VTE_TERMINAL(vte), 0, &error);
|
VtePty *pty = vte_terminal_pty_new(VTE_TERMINAL(vte), 0, &error);
|
||||||
|
|
||||||
if (!pty) {
|
if (!pty) {
|
||||||
fprintf(stderr, "Failed to create pty: %s", error->message);
|
fprintf(stderr, "Failed to create pty: %s\n", error->message);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,6 +113,7 @@ int main(int argc, char **argv) {
|
||||||
&ppid, &error)) {
|
&ppid, &error)) {
|
||||||
vte_terminal_watch_child(VTE_TERMINAL(vte), ppid);
|
vte_terminal_watch_child(VTE_TERMINAL(vte), ppid);
|
||||||
} else {
|
} else {
|
||||||
|
fprintf(stderr, "The new terminal's command failed to run: %s\n", error->message);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue