Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 9ce1946

Browse files
committed
fix: call spinner.failed on warning
- Added a spinner failure indication when no languages are found. - Updated the warning message format in the konsola utility for better readability.
1 parent 99e259f commit 9ce1946

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/commands/languages/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ languagesCommand
5252
const internationalization = await fetchLanguages(space, state.password, state.region);
5353

5454
if (!internationalization || internationalization.languages?.length === 0) {
55-
konsola.warn(`No languages found in the space ${space}`);
55+
spinner.failed();
56+
57+
konsola.warn(`No languages found in the space ${space}`, true);
58+
konsola.br();
5659
return;
5760
}
5861
await saveLanguagesToFile(space, internationalization, {

src/utils/konsola.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const konsola = {
5454
console.warn(formatHeader(warnHeader));
5555
}
5656

57-
console.warn(message ? `${chalk.yellow('⚠️')} ${message}` : '');
57+
console.warn(message ? `${chalk.yellow('⚠️ ')} ${message}` : '');
5858
},
5959
error: (message: string, info?: unknown, options?: KonsolaFormatOptions) => {
6060
if (options?.header) {

0 commit comments

Comments
 (0)