diff --git a/cmd/mr_create.go b/cmd/mr_create.go index 072b130e..81e59b9e 100644 --- a/cmd/mr_create.go +++ b/cmd/mr_create.go @@ -240,6 +240,10 @@ func runMRCreate(cmd *cobra.Command, args []string) { var title, body string if filename != "" { + if _, err := os.Stat(filename); os.IsNotExist(err) { + log.Fatalf("file %s cannot be found", filename) + } + if len(msgs) > 0 || coverLetterFormat { log.Fatal("option -F cannot be combined with -m/-c") }