diff --git a/main.go b/main.go index b5783d7..01e3710 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,8 @@ func main() { envFile, err := os.Open(*EnvFilePath) if err != nil { - panic(err) + fmt.Fprintf(os.Stderr, "could not open file '%s': %s\n", *EnvFilePath, err.(*os.PathError).Err) + return } defer envFile.Close()