Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -385,7 +385,7 @@ namespace Server.Commands
|
|||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
throw new Exception( String.Format( "Bad type: {0}", m_Type ), e );
|
||||
throw new Exception($"Bad type: {m_Type}", e );
|
||||
}
|
||||
|
||||
if ( item is BaseAddon addon )
|
||||
|
|
@ -1061,7 +1061,7 @@ namespace Server.Commands
|
|||
list.m_Type = ScriptCompiler.FindTypeByName( line.Substring( 0, indexOf++ ), true );
|
||||
|
||||
if ( list.m_Type == null )
|
||||
throw new ArgumentException( String.Format( "Type not found for header: '{0}'", line ) );
|
||||
throw new ArgumentException($"Type not found for header: '{line}'");
|
||||
|
||||
line = line.Substring( indexOf );
|
||||
indexOf = line.IndexOf( '(' );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue