Standardize exception messages

This commit is contained in:
Tyrrrz
2023-12-25 18:59:30 +02:00
parent 490398f773
commit 425c8f4022
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ public class DefaultTypeActivator : ITypeActivator
{
throw CliFxException.InternalError(
$"""
Failed to create an instance of type `{type.FullName}`, could not access the constructor.
Failed to create an instance of type `{type.FullName}` because an appropriate constructor is not available.
Default type activator is only capable of instantiating a type if it has a public parameterless constructor.
To fix this, either add a parameterless constructor to the type or configure a custom activator for the application.
""",

View File

@@ -86,7 +86,7 @@ internal partial class StackFrame
// exception so that it's shown to the user.
throw new FormatException(
$"""
Could not parse stacktrace:
Failed to parse stacktrace:
{stackTrace}
"""
);