Skip to content

Commit

Permalink
chore:Error objects are now returned as is.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nich87 committed Sep 26, 2023
1 parent 8abbd96 commit c29830b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/api/ytdl/download/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const GET = async ({ url }) => {
console.error(error);
return json(
{
error: 'Internal Server Error'
error: 'Internal Server Error',
errorobj: error
},
{
status: 500
Expand Down

0 comments on commit c29830b

Please sign in to comment.