From f35bc7b9fd973047c4ae959db022b360dc9daa76 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Wed, 17 Jan 2024 10:25:24 -0500 Subject: [PATCH] minor fix --- components/CollectionCard.tsx | 2 +- layouts/MainLayout.tsx | 2 +- lib/api/archiveHandler.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index 5e1f8a4..1a6cc31 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -172,7 +172,7 @@ export default function CollectionCard({ collection, className }: Props) {
{collection.isPublic ? ( ) : undefined} diff --git a/layouts/MainLayout.tsx b/layouts/MainLayout.tsx index f0a9190..7993c45 100644 --- a/layouts/MainLayout.tsx +++ b/layouts/MainLayout.tsx @@ -46,7 +46,7 @@ export default function MainLayout({ children }: Props) {
diff --git a/lib/api/archiveHandler.ts b/lib/api/archiveHandler.ts index ce919b3..60ea790 100644 --- a/lib/api/archiveHandler.ts +++ b/lib/api/archiveHandler.ts @@ -43,7 +43,8 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) { ? await validateUrlSize(link.url) : undefined; - if (validatedUrl === null) throw "File is too large to be stored."; + if (validatedUrl === null) + throw "Something went wrong while retrieving the file size."; const contentType = validatedUrl?.get("content-type"); let linkType = "url";