You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
prompt the user to sign in when authentication fails on a fetch/push/pull #851
I've noticed that there is a function, performFailableOperation that accepts as an argument, a function that emits a message in the event of an exception. Since this function returns a future, is there some other place where we listen for all 'did-error' events? If so, what class?
Also, when an error results in UI needing to be rendered, what is the preferred way of doing that? I initially thought app-state would be the most logical choice, however, I now feel that it would be better in the dispatcher.
Activity
shiftkey commentedon Jan 25, 2017
@desktop/core tentatively added to M2 - let me know your feels
joshaber commentedon Jan 26, 2017
Sign in in what sense? Sign in if you're not logged in to a GitHub account? Or sign in for an arbitrary URL?
shiftkey commentedon Jan 30, 2017
What about we just focus on the GitHub integration here (as that's more feature-complete), and talk about arbitrary URL authentication to #852?
joshaber commentedon Jan 30, 2017
👍
iAmWillShepherd commentedon Feb 2, 2017
I've noticed that there is a function,
performFailableOperationthat accepts as an argument, a function that emits a message in the event of an exception. Since this function returns a future, is there some other place where we listen for all'did-error'events? If so, what class?Also, when an error results in UI needing to be rendered, what is the preferred way of doing that? I initially thought
app-statewould be the most logical choice, however, I now feel that it would be better in the dispatcher.Thoughts?
joshaber commentedon Feb 3, 2017
(For posterity, we screenshared to talk through how errors propagate.)
iAmWillShepherd commentedon Feb 6, 2017
In reproducing and tracking this bug, I've discovered that clicking pull when not signed in results in the error being shown twice.

shiftkey commentedon Mar 24, 2017
Fixed in #903