@@ -85,16 +85,16 @@ protected override void OnBeforeGeneration(GeneratorContext context, Cancellatio
8585 {
8686 CreateDiagnostic (
8787 "KG0000" ,
88- "Kiota installation failed" ,
89- installError ?? "Failed to install or locate the Kiota tool." ) . Report ( context ) ;
88+ "Microsoft Kiota installation failed" ,
89+ installError ?? "Failed to install or locate the Microsoft Kiota tool." ) . Report ( context ) ;
9090 return ;
9191 }
9292
9393 toolExecutable = NETCoreToolHelpers . GetExecutablePath ( ToolDirectory , "kiota" ) ;
9494 }
9595 catch ( Exception ex )
9696 {
97- CreateDiagnostic ( "KG0000" , "Kiota installation failed" , ex . Message ) . Report ( context ) ;
97+ CreateDiagnostic ( "KG0000" , "Microsoft Kiota installation failed" , ex . Message ) . Report ( context ) ;
9898 return ;
9999 }
100100
@@ -144,8 +144,8 @@ protected override void OnBeforeGeneration(GeneratorContext context, Cancellatio
144144 {
145145 CreateDiagnostic (
146146 "KG0001" ,
147- "Kiota generation failed" ,
148- $ "Kiota failed for spec '{ specPath } ' with exit code { runResult . ExitCode } : { runResult . StandardError . ReplaceLineEndings ( " " ) } ") . Report ( context ) ;
147+ "OpenAPI generation failed" ,
148+ $ "Microsoft Kiota failed for spec '{ specPath } ' with exit code { runResult . ExitCode } : { runResult . StandardError . ReplaceLineEndings ( " " ) } ") . Report ( context ) ;
149149 DirectoryHelpers . TryDelete ( tempOut ) ;
150150 continue ;
151151 }
@@ -156,7 +156,7 @@ protected override void OnBeforeGeneration(GeneratorContext context, Cancellatio
156156 CreateDiagnostic (
157157 "KG0002" ,
158158 "No C# files generated" ,
159- $ "Kiota produced no C# files for spec '{ specPath } '") . Report ( context ) ;
159+ $ "Microsoft Kiota produced no C# files for spec '{ specPath } '") . Report ( context ) ;
160160 DirectoryHelpers . TryDelete ( tempOut ) ;
161161 continue ;
162162 }
@@ -181,11 +181,11 @@ protected override void OnBeforeGeneration(GeneratorContext context, Cancellatio
181181 }
182182 }
183183
184- // DirectoryHelpers.TryDelete(tempOut);
184+ DirectoryHelpers . TryDelete ( tempOut ) ;
185185 }
186186 catch ( Exception ex )
187187 {
188- CreateDiagnostic ( "KG9999" , "Kiota generator exception" , ex . ToString ( ) ) . Report ( context ) ;
188+ CreateDiagnostic ( "KG9999" , "OpenAPI generator exception" , ex . ToString ( ) ) . Report ( context ) ;
189189 DirectoryHelpers . TryDelete ( tempOut ) ;
190190 }
191191 }
0 commit comments