mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Improved handling of missing source file
This commit is contained in:
parent
957f24e159
commit
7894fc73cc
5 changed files with 23 additions and 1 deletions
|
@ -398,10 +398,16 @@ namespace IDE.Compiler
|
|||
if (data == null)
|
||||
{
|
||||
String msg = new String();
|
||||
msg.AppendF("FAILED TO LOAD FILE: {0}", sourceFilePath);
|
||||
msg.AppendF("ERROR: FAILED TO LOAD FILE '{0}' in project '{1}'", sourceFilePath, projectSource.mProject.mProjectName);
|
||||
mQueuedOutput.Add(msg);
|
||||
passInstance.mFailed = true;
|
||||
projectSourceCommand.mProjectSource.mLoadFailed = true;
|
||||
}
|
||||
else
|
||||
projectSourceCommand.mProjectSource.mLoadFailed = false;
|
||||
|
||||
if (mIsResolveOnly)
|
||||
projectSourceCommand.mProjectSource.mLoadFailed = data == null;
|
||||
|
||||
if ((!mIsResolveOnly) && (data != null))
|
||||
IDEApp.sApp.mWorkspace.ProjectSourceCompiled(projectSource, data, char8IdData, canMoveSourceString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue