error messages improved

This commit is contained in:
Timon Ringwald 2022-07-25 17:15:16 +02:00
parent 2a4380b1c0
commit b59d2a8001

View File

@ -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()