1
0
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:
Wilma456 (Jakob0815) 2017-09-16 16:11:36 +02:00 committed by GitHub
parent 1c8480a329
commit f8193a4d23

View File

@ -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