Skip to content

Commit

Permalink
debug S3 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aliamerj committed Mar 10, 2024
1 parent 37bc306 commit 78f8a77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/api/project/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ export async function POST(request: NextRequest) {
{ status: 201 },
);
} catch (err) {
const errorDetails = JSON.stringify(err, Object.getOwnPropertyNames(err));
return NextResponse.json(
{ state: false, message: "Failed to Upload Image",err},
{ state: false, message: "Failed to Upload Image",err: errorDetails},
{ status: 500 },
);
}
Expand Down

0 comments on commit 78f8a77

Please sign in to comment.