Skip to content

Commit

Permalink
πŸ”Š Fix logging a response object
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryScaletta committed Nov 18, 2023
1 parent 08fd36c commit 2042ea6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export class TwitchClipsDownloaderService implements OnModuleDestroy {
}
const clip = res.data.data[0];
if (!clip) {
throw new Error(`Cannot find a clip: ${slug}\nResponse:\n${res.data}`);
throw new Error(
`Cannot find a clip: ${slug}\nResponse:\n${JSON.stringify(res.data)}`,
);
}
return clip;
}
Expand Down

0 comments on commit 2042ea6

Please sign in to comment.