baseline

yet another open-source distributed versioning control system
Log | Files | Refs

commit 766ef8cf22f28b8d026023a0876a42c059e8856f
parent fa1cd1d694185c9c38e5fe61059dc4ba8715b585
Author: Mohamed Aslan <maslan@sce.carleton.ca>
Date:   Mon, 26 May 2014 13:57:32 -0400

fix text editor not found bug

Diffstat:
Mcmd-commit.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd-commit.c b/cmd-commit.c @@ -150,7 +150,8 @@ cmd_commit(int argc, char **argv) } else if ((editor = getenv("EDITOR")) != NULL) { asprintf(&exec, "%s %s", editor, msg_file); - system(exec); + if (system(exec) != EXIT_SUCCESS) + errx(EXIT_FAILURE, "error, failed to launch \'%s\' text editor.", editor); free(exec); } else {