File tree 1 file changed +2
-2
lines changed
src/System.CommandLine.Hosting
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public static ParseResult GetParseResult(this IHostBuilder hostBuilder)
63
63
ctxObj is ParseResult invocationContext )
64
64
return invocationContext ;
65
65
66
- throw new InvalidOperationException ( "Host builder has no Invocation Context registered to it." ) ;
66
+ throw new InvalidOperationException ( "Host builder has no command-line parse result registered to it." ) ;
67
67
}
68
68
69
69
public static ParseResult GetParseResult ( this HostBuilderContext context )
@@ -74,7 +74,7 @@ public static ParseResult GetParseResult(this HostBuilderContext context)
74
74
ctxObj is ParseResult invocationContext )
75
75
return invocationContext ;
76
76
77
- throw new InvalidOperationException ( "Host builder has no Invocation Context registered to it." ) ;
77
+ throw new InvalidOperationException ( "Host builder context has no command-line parse result registered to it." ) ;
78
78
}
79
79
80
80
public static IHost GetHost ( this ParseResult parseResult )
You can’t perform that action at this time.
0 commit comments