1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Send cli errors to stderr

This commit is contained in:
Frederic Guillot 2018-12-09 18:05:40 -08:00
parent 59d8e9b95e
commit 6869c6fe6f
4 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ import (
func flushSessions(store *storage.Storage) {
fmt.Println("Flushing all sessions (disconnect users)")
if err := store.FlushAllSessions(); err != nil {
fmt.Println(err)
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
}