Added error reporting on failure to load file from the command line.

This commit is contained in:
Paul Kulchenko
2014-07-15 15:44:52 -07:00
parent 54b29472cc
commit 8678404b84

View File

@@ -476,7 +476,9 @@ do
dir:Normalize() -- turn into absolute path if needed
ProjectUpdateProjectDir(dir:GetFullPath())
else
LoadFile(fileName, nil, true)
if not LoadFile(fileName, nil, true) then
DisplayOutputLn(TR("Can't open file '%s': %s"):format(fileName, wx.wxSysErrorMsg()))
end
end
end
end