Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Mar 7, 2025
1 parent 1a3ad3c commit e9a5290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/http-client-java/emitter/src/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ function reportJarOutput(program: Program, jarOutput: string) {
for (const log of logs) {
if (log.startsWith("ERROR ")) {
reportDiagnostic(program, {
code: "jar-error",
code: "generator-error",
format: {
errorMessage: log.substring(6),
},
target: NoTarget,
});
} else if (log.startsWith("WARN ")) {
reportDiagnostic(program, {
code: "jar-warning",
code: "generator-warning",
format: {
warningMessage: log.substring(5),
},
Expand Down
4 changes: 2 additions & 2 deletions packages/http-client-java/emitter/src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const $lib = createTypeSpecLibrary({
default: paramMessage`An unknown error occurred. ${"errorMessage"}`,
},
},
"jar-error": {
"generator-error": {
severity: "error",
messages: {
default: paramMessage`${"errorMessage"}`,
Expand Down Expand Up @@ -138,7 +138,7 @@ export const $lib = createTypeSpecLibrary({
},

// warning
"jar-warning": {
"generator-warning": {
severity: "warning",
messages: {
default: paramMessage`${"warningMessage"}`,
Expand Down

0 comments on commit e9a5290

Please sign in to comment.