error messages improved

This commit is contained in:
Timon Ringwald 2022-07-25 17:15:16 +02:00
parent 2a4380b1c0
commit a41b4a8ac2
1 changed files with 2 additions and 1 deletions

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