Skip to content

Commit

Permalink
Merge pull request #1641 from mfechner/mfechner-patch-1
Browse files Browse the repository at this point in the history
Improve error message: E035: Failed to create the following bookmark …
  • Loading branch information
marcelklehr authored Jun 12, 2024
2 parents 703e3af + 6835af5 commit bf104f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors/Error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class FileUnreadableError extends FloccusError {
export class CreateBookmarkError extends FloccusError {
public bookmark: Bookmark
constructor(bookmark: Bookmark) {
super(`E035: Failed to create the following bookmark on the server: ${bookmark}`)
super(`E035: Failed to create the following bookmark on the server: ${JSON.stringify(bookmark)}`)
this.code = 35
this.bookmark = bookmark
Object.setPrototypeOf(this, CreateBookmarkError.prototype)
Expand Down

0 comments on commit bf104f4

Please sign in to comment.