Skip to content

Commit

Permalink
fix authoring region and language fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyLaw committed Dec 31, 2019
1 parent a55890c commit 1619d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ export const PublishLuis = props => {
/>
<TextField
label={formatMessage('Authoring Region')}
defaultValue={defaultFields.authoringRegion}
defaultValue={formData.authoringRegion || defaultFields.authoringRegion}
onRenderLabel={onRenderLabel(Tips.AUTHORING_REGION)}
disabled
/>
<TextField
label={formatMessage('Default Language')}
defaultValue={defaultFields.defaultLanguage}
defaultValue={formData.defaultLanguage || defaultFields.defaultLanguage}
onRenderLabel={onRenderLabel(Tips.DEFAULT_LANGUAGE)}
disabled
/>
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/server/src/models/bot/luPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.body.error && error.body.error.message) || 'Error publishing to LUIS.');
}

await this._copyDialogsToTargetFolder(config);
Expand Down

0 comments on commit 1619d7b

Please sign in to comment.