Skip to content

Commit

Permalink
fix data view load err msg (#126974) (#127021)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0807b53)

Co-authored-by: Matthew Kime <[email protected]>
  • Loading branch information
kibanamachine and mattkime authored Mar 7, 2022
1 parent 50c7904 commit 34b1f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data_views/common/data_views/data_views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export class DataViewsService {
);

if (!savedObject.version) {
throw new SavedObjectNotFound(DATA_VIEW_SAVED_OBJECT_TYPE, id, 'management/kibana/dataViews');
throw new SavedObjectNotFound('data view', id, 'management/kibana/dataViews');
}

return this.initFromSavedObject(savedObject);
Expand Down

0 comments on commit 34b1f09

Please sign in to comment.