improve error reporting

This commit is contained in:
Daniel Micay 2012-05-22 04:47:36 -04:00
parent 499ad4c751
commit 72aecb23f0
1 changed files with 2 additions and 1 deletions

3
term.c
View File

@ -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;
} }