From c797d53a765a48f2fd7d8611203daa050b176283 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Mon, 5 Dec 2022 22:57:53 +0100 Subject: [PATCH] Remove superfluous dollar signs from bundle/package error messages. --- ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs | 2 +- ICSharpCode.ILSpyX/LoadedPackage.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs b/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs index aa9ee0ac7..39df21326 100644 --- a/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs +++ b/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs @@ -363,7 +363,7 @@ Examples: if (decompressedStream.Length != entry.Size) { - app.Error.WriteLine($"Corrupted single-file entry '${entry.RelativePath}'. Declared decompressed size '${entry.Size}' is not the same as actual decompressed size '${decompressedStream.Length}'."); + app.Error.WriteLine($"Corrupted single-file entry '{entry.RelativePath}'. Declared decompressed size '{entry.Size}' is not the same as actual decompressed size '{decompressedStream.Length}'."); return ProgramExitCodes.EX_DATAERR; } diff --git a/ICSharpCode.ILSpyX/LoadedPackage.cs b/ICSharpCode.ILSpyX/LoadedPackage.cs index f99b78b9b..8d0d99f90 100644 --- a/ICSharpCode.ILSpyX/LoadedPackage.cs +++ b/ICSharpCode.ILSpyX/LoadedPackage.cs @@ -221,7 +221,7 @@ namespace ICSharpCode.ILSpyX deflateStream.CopyTo(decompressedStream); if (decompressedStream.Length != entry.Size) { - throw new InvalidDataException($"Corrupted single-file entry '${entry.RelativePath}'. Declared decompressed size '${entry.Size}' is not the same as actual decompressed size '${decompressedStream.Length}'."); + throw new InvalidDataException($"Corrupted single-file entry '{entry.RelativePath}'. Declared decompressed size '{entry.Size}' is not the same as actual decompressed size '{decompressedStream.Length}'."); } decompressedStream.Seek(0, SeekOrigin.Begin);