aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2023-05-18 10:36:48 +0200
committerBjørn Erik Pedersen <[email protected]>2023-05-18 12:47:23 +0200
commit834b3d7e41d42a97df58804e3e6ed4d5ed596efc (patch)
tree0693f0b6a35fda7e168627d6360b51e2041fd4f2 /main.go
parent1155bbca9d4cdf42e9b4a2d0351fd5be0aa8ec08 (diff)
downloadhugo-834b3d7e41d42a97df58804e3e6ed4d5ed596efc.tar.gz
hugo-834b3d7e41d42a97df58804e3e6ed4d5ed596efc.zip
Fix some recently introduced error handling issues
Updates #10953
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index e08bf7c53..311cb3645 100644
--- a/main.go
+++ b/main.go
@@ -21,8 +21,9 @@ import (
)
func main() {
+ log.SetFlags(0)
err := commands.Execute(os.Args[1:])
if err != nil {
- log.Fatal(err)
+ log.Fatalf("Error: %s", err)
}
}