Skip to content

Commit

Permalink
print error, if editor was not opened
Browse files Browse the repository at this point in the history
  • Loading branch information
skatkov committed Sep 20, 2023
1 parent b057829 commit 1dc4cbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"flag"
"fmt"
"os"
"time"

Expand Down Expand Up @@ -36,6 +37,10 @@ func main() {
case *quoteFlag:
cmd.NewQuoteCommand().Run()
default:
_ = ctx.OpenInEditor(stoic.NewEntry(ctx, time.Now()))
err := ctx.OpenInEditor(stoic.NewEntry(ctx, time.Now()))

if err != nil {
fmt.Println(err)
}
}
}

0 comments on commit 1dc4cbc

Please sign in to comment.