mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-06-09 01:54:11 +00:00
Merge pull request #456 from Wilma456/ioerror
Set errorlevel for "Unsupported format" to 2
This commit is contained in:
commit
19e4c03d3a
@ -92,7 +92,7 @@ function open( _sPath, _sMode )
|
|||||||
elseif sFormat == "*a" then
|
elseif sFormat == "*a" then
|
||||||
return file.readAll()
|
return file.readAll()
|
||||||
else
|
else
|
||||||
error( "Unsupported format" )
|
error( "Unsupported format", 2 )
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end,
|
end,
|
||||||
@ -154,7 +154,7 @@ function open( _sPath, _sMode )
|
|||||||
|
|
||||||
else
|
else
|
||||||
file.close()
|
file.close()
|
||||||
error( "Unsupported mode" )
|
error( "Unsupported mode", 2 )
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user