Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Composer/plugins/azurePublish/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,16 @@ class AzurePublisher {
}
} catch (error) {
console.log(error);
if (typeof error === 'object' && !(error instanceof Error)) {
Comment thread
VanyLaw marked this conversation as resolved.
Outdated
this.logMessages.push(JSON.stringify(error));
} else {
this.logMessages.push(error);
}
// update status and history
const status = this.getLoadingStatus(botId, profileName, jobId);
if (status) {
status.status = 500;
status.result.message = error ? error.message : 'publish error';
status.result.message = error?.message || 'publish error';
status.result.log = this.logMessages.join('\n');
await this.updateHistory(botId, profileName, { status: status.status, ...status.result });
this.removeLoadingStatus(botId, profileName, jobId);
Expand Down Expand Up @@ -319,7 +324,11 @@ class AzurePublisher {
return response;
} catch (err) {
console.log(err);
this.logMessages.push(err.message);
if (typeof err === 'object' && !(err instanceof Error)) {
Comment thread
VanyLaw marked this conversation as resolved.
Outdated
this.logMessages.push(JSON.stringify(err));
} else {
this.logMessages.push(err);
}
const response = {
status: 500,
result: {
Expand Down