diff --git a/parser_test.go b/parser_test.go index 61a3a7c..58aae20 100644 --- a/parser_test.go +++ b/parser_test.go @@ -500,7 +500,8 @@ func TestFloatsWithoutLeadingZeros(t *testing.T) { func TestMissingFile(t *testing.T) { _, err := LoadFile("foo.toml") - if err.Error() != "open foo.toml: no such file or directory" { + if err.Error() != "open foo.toml: no such file or directory" && + err.Error() != "open foo.toml: The system cannot find the file specified." { t.Error("Bad error message:", err.Error()) } }