Fix typo in error message

This commit is contained in:
Alex Szpakowski
2022-04-23 09:40:02 -03:00
parent da1271e9c8
commit b2ba63df18
+1 -1
View File
@@ -383,7 +383,7 @@ function love.init()
local opts = love.arg.options local opts = love.arg.options
local gamepath = opts.game.set and opts.game.arg[1] or "" local gamepath = opts.game.set and opts.game.arg[1] or ""
local gamestr = gamepath == "" and "" or " at "..gamepath local gamestr = gamepath == "" and "" or " at "..gamepath
error("No code to run at "..gamestr.."\nYour game might be packaged incorrectly.\nMake sure "..main_file.." is at the top level of the zip or folder.") error("No code to run"..gamestr.."\nYour game might be packaged incorrectly.\nMake sure "..main_file.." is at the top level of the zip or folder.")
elseif invalid_game_path then elseif invalid_game_path then
error("Cannot load game at path '" .. invalid_game_path .. "'.\nMake sure a folder exists at the specified path.") error("Cannot load game at path '" .. invalid_game_path .. "'.\nMake sure a folder exists at the specified path.")
end end