diff options
author | Alex Crawford <wally@code.acrawford.com> | 2021-04-07 16:18:54 -0700 |
---|---|---|
committer | Alex Crawford <wally@code.acrawford.com> | 2021-04-07 16:18:54 -0700 |
commit | c88466d3522a1777f51bd92105612a6ee3cdfc8e (patch) | |
tree | c38af004f2fb9a07a4b3ac3ccce70815f374c19e | |
parent | 98a3959eeedc2e4fdb38acf8de9a9543badb825d (diff) |
main: print the file path when it cannot be found
It's helpful to see the path as provided to the executable. Sometimes
shells can interpret things unexpectedly or, as in my case, a parent
process can use an unexpected format for the file path argument.
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -44,7 +44,7 @@ func main() { } if _, err := os.Stat(path); os.IsNotExist(err) { - fmt.Println("The file path you specified does not exist") + fmt.Println("The file path you specified does not exist:", path) os.Exit(1) } |