diff --git a/packages/dashboard-frontend/src/services/registry/__tests__/devfiles.spec.ts b/packages/dashboard-frontend/src/services/registry/__tests__/devfiles.spec.ts index 21481aeba..d541349a4 100644 --- a/packages/dashboard-frontend/src/services/registry/__tests__/devfiles.spec.ts +++ b/packages/dashboard-frontend/src/services/registry/__tests__/devfiles.spec.ts @@ -156,10 +156,10 @@ describe('fetch registry metadata', () => { ); expect(mockSessionStorageServiceUpdate).not.toHaveBeenCalled(); expect(errorMessage).toEqual( - 'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returns type is not array.', + 'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returned value is not array.', ); expect(console.error).toBeCalledWith( - 'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returns type is not array.', + 'Failed to fetch devfiles metadata from registry URL: https://eclipse-che.github.io/che-devfile-registry/7.71.0/, reason: Returned value is not array.', ); }); @@ -333,10 +333,10 @@ describe('fetch registry metadata', () => { expect(mockFetchData).toBeCalledWith('https://registry.devfile.io/index'); expect(mockSessionStorageServiceUpdate).not.toHaveBeenCalled(); expect(errorMessage).toEqual( - 'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returns type is not array.', + 'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returned value is not array.', ); expect(console.error).toBeCalledWith( - 'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returns type is not array.', + 'Failed to fetch devfiles metadata from registry URL: https://registry.devfile.io/, reason: Returned value is not array.', ); }); diff --git a/packages/dashboard-frontend/src/services/registry/devfiles.ts b/packages/dashboard-frontend/src/services/registry/devfiles.ts index b8bc1e37e..4af315751 100644 --- a/packages/dashboard-frontend/src/services/registry/devfiles.ts +++ b/packages/dashboard-frontend/src/services/registry/devfiles.ts @@ -22,7 +22,7 @@ export class DevfileMetaDataIsNotArrayError extends Error { public location: string; constructor(location: string) { - super('Returns type is not array.'); + super('Returned value is not array.'); this.location = location; } }