Add error detail

pull/5494/head
Kamran Ahmed 8 months ago
parent ab2b7688f1
commit 1d04dd9970
  1. 1
      src/pages/[roadmapId]/index.json.ts

@ -45,6 +45,7 @@ export const GET: APIRoute = async function ({ params, url, request, props }) {
data: null, data: null,
error: { error: {
message: 'Roadmap not found', message: 'Roadmap not found',
detail: (error as any).message,
}, },
}), }),
{ {

Loading…
Cancel
Save