fix data view load err msg (#126974)

This commit is contained in:
Matthew Kime 2022-03-07 07:23:35 -06:00 committed by GitHub
parent f12891ee46
commit 0807b53d75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -424,7 +424,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);