summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crawford <wally@code.acrawford.com>2021-04-07 16:18:54 -0700
committerAlex Crawford <wally@code.acrawford.com>2021-04-07 16:18:54 -0700
commitc88466d3522a1777f51bd92105612a6ee3cdfc8e (patch)
treec38af004f2fb9a07a4b3ac3ccce70815f374c19e
parent98a3959eeedc2e4fdb38acf8de9a9543badb825d (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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index e3bf794..655334d 100644
--- a/main.go
+++ b/main.go
@@ -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)
}