Skip to content

Commit fa3e89c

Browse files
Better error message when failing to install app
1 parent a2c89a4 commit fa3e89c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Changelog.minor.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ release the new version.
1212
### Changed
1313

1414
- #914: Show the devices actually supported by the current Quick Start app.
15+
- #935: Updated and corrected dialog styles from
16+
[shared v146](https://github.com/NordicSemiconductor/pc-nrfconnect-shared/releases/tag/v146).
17+
- #935: Better message when installing downloadable apps fails.
1518

1619
## 4.3.0
1720

src/launcher/features/apps/appsEffects.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
isInstalled,
2222
LaunchableApp,
2323
} from '../../../ipc/apps';
24+
import { cleanIpcErrorMessage } from '../../../ipc/error';
2425
import type { AppThunk } from '../../store';
2526
import appCompatibilityWarning from '../../util/appCompatibilityWarning';
2627
import { handleSourcesWithErrors } from '../sources/sourcesEffects';
@@ -149,7 +150,9 @@ const install =
149150
} catch (error) {
150151
dispatch(
151152
ErrorDialogActions.showDialog(
152-
`Unable to install: ${(error as Error).message}`
153+
`Unable to install downloadable app.`,
154+
undefined,
155+
cleanIpcErrorMessage(describeError(error))
153156
)
154157
);
155158
}

0 commit comments

Comments
 (0)