We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d2fddc commit e3611ffCopy full SHA for e3611ff
1 file changed
src/clients/apim-client.ts
@@ -864,8 +864,8 @@ export class ApimClient implements IApimClient {
864
865
if (status === 'failed' || status === 'canceled' || status === 'cancelled') {
866
const error = body.error as Record<string, unknown> | undefined;
867
- const code = error?.code ?? 'UnknownError';
868
- const message = error?.message ?? JSON.stringify(body);
+ const code = (error?.code as string) ?? 'UnknownError';
+ const message = (error?.message as string) ?? JSON.stringify(body);
869
throw new Error(`Async operation ${status} for ${label}: [${code}] ${message}`);
870
}
871
0 commit comments