Skip to content

Commit

Permalink
show error 404
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyre committed Nov 7, 2024
1 parent fc8e541 commit d48f327
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion argilla-frontend/pages/useNewDatasetViewModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const useNewDatasetViewModel = () => {
repositoryId
);
} catch (e) {
error({ statusCode: e.status, message: e.response });
error({ statusCode: 404, message: e.response });
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export class HubRepository {
return data.dataset_info;
} catch (e) {
throw {
status: e.response.status,
response: HUB_REPOSITORY_ERRORS.NOT_EXIST,
};
}
Expand Down

0 comments on commit d48f327

Please sign in to comment.