Use format strings

This commit is contained in:
Yoshi Askharoun
2023-05-21 18:47:17 -05:00
parent 3db134a6fe
commit 5e8abc93f0
2 changed files with 6 additions and 6 deletions
@@ -538,7 +538,7 @@ namespace Microsoft.Zune.Shell
} }
} }
if (num > 0) if (num > 0)
throw new ZuneShellException("Internal Zune Shell error", string.Format("Scripting errors encountered (Process ID) = {0}\n\n{1}", Process.GetCurrentProcess().Id.ToString(CultureInfo.InvariantCulture), str)); throw new ZuneShellException("Internal Zune Shell error", $"Scripting errors encountered (Process ID) = {Process.GetCurrentProcess().Id.ToString(CultureInfo.InvariantCulture)}\n\n{str}");
} }
internal static bool CanAddMedia(IList filenames, MediaType mediaType, CanAddMediaArgs args) internal static bool CanAddMedia(IList filenames, MediaType mediaType, CanAddMediaArgs args)