diff --git a/Composer/packages/client/src/pages/language-understanding/publish-luis-modal.js b/Composer/packages/client/src/pages/language-understanding/publish-luis-modal.js index b17e141391..619ff9a692 100644 --- a/Composer/packages/client/src/pages/language-understanding/publish-luis-modal.js +++ b/Composer/packages/client/src/pages/language-understanding/publish-luis-modal.js @@ -170,13 +170,13 @@ export const PublishLuis = props => { /> diff --git a/Composer/packages/server/src/models/bot/luPublisher.ts b/Composer/packages/server/src/models/bot/luPublisher.ts index 1ac494e468..f117227f8a 100644 --- a/Composer/packages/server/src/models/bot/luPublisher.ts +++ b/Composer/packages/server/src/models/bot/luPublisher.ts @@ -94,7 +94,7 @@ export class LuPublisher { }); await this.saveStatus(); } catch (error) { - throw new Error('Error publishing to LUIS.'); + throw new Error(error?.body?.error?.message ?? 'Error publishing to LUIS.'); } await this._copyDialogsToTargetFolder(config);