Skip to content

Commit

Permalink
check err for loading config
Browse files Browse the repository at this point in the history
  • Loading branch information
wufeiteng committed Aug 19, 2024
1 parent 3ba543b commit 0561a02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ func main() {
log.SetLevel(log.DebugLevel)
}
// TODO: put it in a better place.
sources.LoadConfig()
if err := sources.LoadConfig(); err != nil {
log.Fatalf("load config err: %v", err)
}

if *renderFormat != "md" {
sources.Gbold, sources.Gitalic = "", ""
Expand Down

0 comments on commit 0561a02

Please sign in to comment.