Fix TestMissingFile on Windows (#148)

Closing #147
This commit is contained in:
tro3
2017-03-21 07:10:48 -07:00
committed by Thomas Pelletier
parent 62e2d802ed
commit 25e50242f6
+2 -1
View File
@@ -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())
}
}