Skip to content

Commit

Permalink
Fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
menees committed Sep 27, 2024
1 parent 9382618 commit 46bcf83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Menees.Remoting.TestHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static int Main(string[] args)

if (args.Length != RequiredArgCount)
{
exitCode = FataError(ExitCode.MissingArgs, $"Usage: {nameof(TestHost)} AssemblyPath TypeName ServerPathPrefix Max Min");
exitCode = FatalError(ExitCode.MissingArgs, $"Usage: {nameof(TestHost)} AssemblyPath TypeName ServerPathPrefix Max Min");
}
else
{
Expand All @@ -58,14 +58,14 @@ public static int Main(string[] args)

if (serviceType == null)
{
exitCode = FataError(ExitCode.MissingType, $"Unable to load type {typeName} from assembly {assemblyPath}.");
exitCode = FatalError(ExitCode.MissingType, $"Unable to load type {typeName} from assembly {assemblyPath}.");
}
else
{
Type? interfaceType = serviceType.GetInterfaces().FirstOrDefault();
if (interfaceType == null)
{
exitCode = FataError(ExitCode.MissingInterface, $"No interface found on type {serviceType}.");
exitCode = FatalError(ExitCode.MissingInterface, $"No interface found on type {serviceType}.");
}
else
{
Expand Down Expand Up @@ -104,7 +104,7 @@ public static int Main(string[] args)
}
catch (Exception ex)
{
exitCode = FataError(ExitCode.UnhandledException, $"Unhandled exception: {ex}");
exitCode = FatalError(ExitCode.UnhandledException, $"Unhandled exception: {ex}");
}
}

Expand All @@ -115,7 +115,7 @@ public static int Main(string[] args)

#region Private Methods

private static ExitCode FataError(ExitCode exitCode, string message)
private static ExitCode FatalError(ExitCode exitCode, string message)
{
Error.WriteLine(message);
Error.WriteLine($"Exit code: {exitCode}");
Expand Down

0 comments on commit 46bcf83

Please sign in to comment.