Skip to content

Commit

Permalink
修复异常提示不正确的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhll committed Aug 1, 2024
1 parent cf8e99c commit 19247a4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ protected override async Task<AuthenticateResult> HandleAuthenticateAsync()
var token = GetAuthorizationToken(Context);
var serviceEntryDescriptor = Context.GetServiceEntryDescriptor();

if (serviceEntryDescriptor == null)
if (serviceEntryDescriptor == null)
{
throw new NotFindServiceEntryException($"Not find service entry by API {Context.Request.Path}-{Context.Request.Path}");
throw new NotFindServiceEntryException(
$"Not find service entry by WebAPI {Context.Request.Method}-{Context.Request.Path}");
}

try
Expand Down

0 comments on commit 19247a4

Please sign in to comment.