X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fview.c;h=9508743e62878ade2428905ba0bfdc9e831537f5;hp=9e7c9d91e55d8127e4e09d43169dd35dc14cfaa7;hb=0c687325f18ccb6950cd6a8a9665f33a6890d5a1;hpb=fa072eae902cbc001ec8406d52a3a6903eb77441 diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 9e7c9d91e..9508743e6 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -258,7 +258,11 @@ static int spawn_viewer(const char *trace_path) ret = execvp(viewer_bin, argv); if (ret) { - PERROR("exec: %s", viewer_bin); + if (errno == ENOENT) { + ERR("%s not found on the system", viewer_bin); + } else { + PERROR("exec: %s", viewer_bin); + } free(argv); ret = CMD_FATAL; goto error; @@ -346,8 +350,6 @@ static int view_trace(void) goto free_sessions; } - ret = CMD_SUCCESS; - free_sessions: if (sessions) { free(sessions);