Skip to content

Commit

Permalink
fix: prevent error when attempting to log details of failed to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig committed Oct 22, 2024
1 parent a9b0660 commit a63ff82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/database/pouch-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class PouchDatabase extends Database {
Logging.debug("navigator.onLine", navigator.onLine);
throw new DatabaseException({
error: "Failed to fetch from DB",
actualResponse: JSON.stringify(result.headers),
actualResponse: JSON.stringify(result),
actualResponseBody: await result?.text(),
});
}
Expand Down

0 comments on commit a63ff82

Please sign in to comment.