Skip to content

Commit 0e0d7fa

Browse files
committed
Change empty-response notification from error to information and update its translation key
1 parent fe4689a commit 0e0d7fa

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎apps/editor/src/commands/generate-commit-message-commands/actions/run-generate-action.ts‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -622,10 +622,8 @@ export const run_generate_action = async (params: {
622622
response_text = response_text.replace(/[<>`$()]/g, '')
623623

624624
if (!response_text.trim()) {
625-
vscode.window.showErrorMessage(
626-
t(
627-
'command.generate-commit-message-command.error.empty-response'
628-
)
625+
vscode.window.showInformationMessage(
626+
t('command.generate-commit-message-command.info.empty-response')
629627
)
630628
current_action = undefined
631629
step = 'action'
@@ -685,9 +683,9 @@ export const run_generate_action = async (params: {
685683
continue
686684
} else {
687685
if (error_msg === 'API request returned an empty response') {
688-
vscode.window.showErrorMessage(
686+
vscode.window.showInformationMessage(
689687
t(
690-
'command.generate-commit-message-command.error.empty-response'
688+
'command.generate-commit-message-command.info.empty-response'
691689
)
692690
)
693691
}

‎apps/editor/src/i18n/translations/commands/generate-commit-message-command.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export const translations = {
271271
hu: 'A commit üzenet generálása a válasz előnézete alatt le van tiltva.',
272272
bg: 'Генерирането на commit съобщение е деактивирано по време на преглед на отговора.'
273273
},
274-
'command.generate-commit-message-command.error.empty-response': {
274+
'command.generate-commit-message-command.info.empty-response': {
275275
en: 'API request returned an empty response.',
276276
pl: 'Żądanie API zwróciło pustą odpowiedź.',
277277
'zh-cn': 'API 请求返回了空响应。',

0 commit comments

Comments
 (0)