mercari / hcledit

Go package to edit HCL configuration
MIT License
49 stars 15 forks source link

Add error logging to hcledit command #20

Closed micnncim closed 3 years ago

micnncim commented 3 years ago

WHAT

Added an error logging to hcledit command.

Before:

$ go run ./cmd/hcledit/main.go read
exit status 1

After:

$ go run ./cmd/hcledit/main.go read
accepts 2 arg(s), received 0
exit status 1

WHY

The current implementation doesn't print errors so users can't see the cause of errors.