Fix typo in IniFile.WriteFile() error handling

This commit is contained in:
Martin Natano
2022-02-06 13:21:29 +01:00
parent 7d8ff85018
commit f79830e7af
+1 -1
View File
@@ -107,7 +107,7 @@ IniFile =
local file = RageFileUtil.CreateRageFile()
if not file:Open(file_path, RageFile.WRITE) then
Warn( string.format("WriteFile(%s): %s",file_path.file:GetError()) )
Warn( string.format("WriteFile(%s): %s",file_path,file:GetError()) )
file:destroy()
return false
end