Skip to content

Commit

Permalink
Merge pull request #5245 from microsoft/fix/plugins-generate
Browse files Browse the repository at this point in the history
fix/plugins generate
  • Loading branch information
baywet authored Aug 26, 2024
2 parents 26d442d + 24dcc0a commit 9062bba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/kiota/Handlers/Plugin/GenerateHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ public override async Task<int> InvokeAsync(InvocationContext context)
var result = await builder.GeneratePluginAsync(cancellationToken).ConfigureAwait(false);
if (result)
{
DisplaySuccess($"Update of {clientEntry.Key} client completed");
var manifestPath = $"{GetAbsolutePath(Path.Combine(WorkspaceConfigurationStorageService.KiotaDirectorySegment, WorkspaceConfigurationStorageService.ManifestFileName))}#{clientEntry.Key}";
DisplayInfoHint(generationConfiguration.Language, string.Empty, manifestPath);
DisplaySuccess($"Update of {clientEntry.Key} plugin completed");
}
else
{
Expand All @@ -76,10 +74,10 @@ public override async Task<int> InvokeAsync(InvocationContext context)
catch (Exception ex)
{
#if DEBUG
logger.LogCritical(ex, "error adding the client: {exceptionMessage}", ex.Message);
logger.LogCritical(ex, "error adding the client: {ExceptionMessage}", ex.Message);
throw; // so debug tools go straight to the source of the exception when attached
#else
logger.LogCritical("error adding the client: {exceptionMessage}", ex.Message);
logger.LogCritical("error adding the client: {ExceptionMessage}", ex.Message);
return 1;
#endif
}
Expand Down

0 comments on commit 9062bba

Please sign in to comment.