mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed error messages in functions where love.filesystem.newFile(Data) is called internally
This commit is contained in:
@@ -20,7 +20,11 @@ freely, subject to the following restrictions:
|
||||
|
||||
function love.audio.newSource(a, b)
|
||||
if type(a) == "string" then
|
||||
a = love.filesystem.newFileData(a)
|
||||
local err
|
||||
a, err = love.filesystem.newFileData(a)
|
||||
if not a then
|
||||
error(err, 2)
|
||||
end
|
||||
end
|
||||
if type(a) == "userdata" then
|
||||
if a:typeOf("File") or a:typeOf("FileData") then
|
||||
|
||||
Reference in New Issue
Block a user