Skip to content

Commit

Permalink
Update error type
Browse files Browse the repository at this point in the history
  • Loading branch information
karthick-murugan committed Nov 12, 2024
1 parent f9a9645 commit f32976f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/editor/src/components/commands/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,15 @@ const getEditorCommandLoader = () =>
} else {
createInfoNotice(
__( 'Failed to deactivate plugins:' ) +
' ' +
result.message,
{ type: 'error' }
{ type: 'snackbar' }
);
}
} catch ( error ) {
createInfoNotice(
__( 'Error: Unable to deactivate plugins.' ),
{ type: 'error' }
{ type: 'snackbar' }
);
}
},
Expand Down

0 comments on commit f32976f

Please sign in to comment.