Skip to content

Commit 3b9d170

Browse files
authored
fix: return properly formatted client exception when gdrive import fails (#929)
1 parent 897bf78 commit 3b9d170

File tree

1 file changed

+2
-5
lines changed
  • core/actions/googleDriveImport

1 file changed

+2
-5
lines changed

core/actions/googleDriveImport/run.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import { ReplicationStatus } from "@aws-sdk/client-s3";
2-
import { ValuesNode } from "kysely";
3-
4-
import type { StagesId } from "db/public";
51
import { logger } from "logger";
62

73
import { doPubsExist, getPubTypesForCommunity, updatePub, upsertPubRelations } from "~/lib/server";
@@ -192,7 +188,8 @@ export const run = defineRun<typeof action>(
192188

193189
return {
194190
title: "Error",
195-
error: err.title,
191+
error: "An error occurred while importing the pub from Google Drive.",
192+
cause: err,
196193
};
197194
}
198195

0 commit comments

Comments
 (0)