Refactor error handling #308

Merged
6543 merged 7 commits from noerw/tea:improve-error-log into master 2020-12-16 16:18:11 +00:00
Showing only changes of commit bbfbc1ba10 - Show all commits

View File

@ -6,7 +6,7 @@
package main // import "code.gitea.io/tea"
import (
"log"
"fmt"
"os"
"strings"
@ -44,7 +44,7 @@ func main() {
app.EnableBashCompletion = true
err := app.Run(os.Args)
if err != nil {
log.Fatalf("Failed to run app with %s: %v", os.Args, err)
fmt.Printf("Error: %v\n", err)
}
noerw marked this conversation as resolved Outdated
Outdated
Review

One nit: can you print to stderr ?

One nit: can you print to stderr ?
}