Skip to content

Commit

Permalink
Merge pull request #168 from Skedr/ebg/fix-error-response
Browse files Browse the repository at this point in the history
Return json response on error
  • Loading branch information
jeremyruppel authored Oct 3, 2024
2 parents 1c2a4f0 + c2bf478 commit 1b0c3b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/rest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class FlickrService {
if (json.stat === "fail") {
// @ts-expect-error
throw new Error(json.message, {
cause: res,
cause: json,
})
}

Expand Down

0 comments on commit 1b0c3b4

Please sign in to comment.