Skip to content

Commit 676ad7b

Browse files
committed
live-demo: add test error to test express v5 error handler
AdminForth/1781/image
1 parent 0b6ebf8 commit 676ad7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

live-demo/app/resources/apartments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import AdminForthImageVisionAdapterOpenAi from '@adminforth/image-vision-adapter
1313
import CloneRow from "@adminforth/clone-row";
1414

1515
const blockDemoUsers = async ({ adminUser }: { adminUser: any }) => {
16+
throw new Error("This is a test error and will be removed in few minutes.");
1617
if (adminUser.dbUser && adminUser.dbUser.role !== 'superadmin') {
1718
return { ok: false, error: "You can't do this on demo.adminforth.dev" }
1819
}

0 commit comments

Comments
 (0)