playermobile new Account Account is rather useless, scriptcompiler flukes, etc
This commit is contained in:
parent
1c999ade77
commit
f6fcf9b60a
3 changed files with 11 additions and 9 deletions
|
|
@ -405,13 +405,21 @@ namespace Server
|
|||
|
||||
foreach( CompilerError e in results.Errors )
|
||||
{
|
||||
string file = e.FileName;
|
||||
|
||||
// Rediculous. FileName is null if the warning/error is internally generated in csc.
|
||||
if ( string.IsNullOrEmpty( file ) ) {
|
||||
Console.WriteLine( "ScriptCompiler: {0}: {1}", e.ErrorNumber, e.ErrorText );
|
||||
continue;
|
||||
}
|
||||
|
||||
Dictionary<string, List<CompilerError>> table = (e.IsWarning ? warnings : errors);
|
||||
|
||||
List<CompilerError> list = null;
|
||||
table.TryGetValue( e.FileName, out list );
|
||||
table.TryGetValue( file, out list );
|
||||
|
||||
if( list == null )
|
||||
table[e.FileName] = list = new List<CompilerError>();
|
||||
table[file] = list = new List<CompilerError>();
|
||||
|
||||
list.Add( e );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue