From 462171fca0daf976a92b1eb74d03b32529fcea58 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 8 May 2015 09:15:45 +0900 Subject: [PATCH] check error for opening $EDITOR --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index 86d4329..b7e2538 100644 --- a/commands.go +++ b/commands.go @@ -386,7 +386,7 @@ func openEditor(filepath string) { cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout - cmd.Run() + check(cmd.Run()) } func readFile(filepath string) string {