-
-
Notifications
You must be signed in to change notification settings - Fork 765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't log error if user has no bookmarks #1822
don't log error if user has no bookmarks #1822
Conversation
9bf6d27
to
43add57
Compare
43add57
to
3248793
Compare
log.error(iq); | ||
} | ||
if (deferred) { | ||
} else if (deferred) { | ||
if (iq.querySelector('error[type="cancel"] item-not-found')) { | ||
// Not an exception, the user simply doesn't have any bookmarks. | ||
window.sessionStorage.setItem(this.fetched_flag, true); | ||
return deferred.resolve(); | ||
} else { | ||
return deferred.reject(new Error("Could not fetch bookmarks")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you still need to log an error though, otherwise we won't know what really went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, sorry but the changelog entry needs to be moved to the top as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
3248793
to
a98ce3b
Compare
log.error(iq); | ||
} | ||
if (deferred) { | ||
} else if (deferred) { | ||
if (iq.querySelector('error[type="cancel"] item-not-found')) { | ||
// Not an exception, the user simply doesn't have any bookmarks. | ||
window.sessionStorage.setItem(this.fetched_flag, true); | ||
return deferred.resolve(); | ||
} else { | ||
return deferred.reject(new Error("Could not fetch bookmarks")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, sorry but the changelog entry needs to be moved to the top as well.
a98ce3b
to
6cbecd0
Compare
I think converse should not log an error in case the user simply has no bookmarks.