mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-12 11:10:29 +00:00
Set errorlevel for "Unsupported format" to 2
This commit is contained in:
parent
1c8480a329
commit
f8193a4d23
@ -92,7 +92,7 @@ function open( _sPath, _sMode )
|
||||
elseif sFormat == "*a" then
|
||||
return file.readAll()
|
||||
else
|
||||
error( "Unsupported format" )
|
||||
error( "Unsupported format", 2 )
|
||||
end
|
||||
return nil
|
||||
end,
|
||||
@ -154,7 +154,7 @@ function open( _sPath, _sMode )
|
||||
|
||||
else
|
||||
file.close()
|
||||
error( "Unsupported mode" )
|
||||
error( "Unsupported mode", 2 )
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user