Skip to content

Commit f549c35

Browse files
committed
add openmct error notif
1 parent 32a4024 commit f549c35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/persistence/MCWSPersistenceProvider.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ export default class MCWSPersistenceProvider extends BaseMCWSPersistenceProvider
3131

3232
// it's a network error, we don't want to create a new object
3333
if (error.status !== 404) {
34+
this.openmct.notify.error(
35+
`Error: ${error.message ?? 'Unknown error'}. Check network connection and try again.`
36+
);
37+
3438
return {
3539
identifier,
3640
type: 'unknown',

0 commit comments

Comments
 (0)