Skip to content
This repository has been archived by the owner. It is now read-only.

fix(avatars): Redirect to settings/avatar/change on error #2446

Merged
merged 1 commit into from May 20, 2015

Conversation

@eoger
Copy link
Contributor

@eoger eoger commented May 20, 2015

Fixes #2428,

I also took the liberty to redirect errors to settings/avatar/change when an uploaded avatar is invalid or corrupted.

} catch (e) {
return done(e);
}
});

This comment has been minimized.

@zaach

zaach May 20, 2015
Contributor

Now that view.fileSet is a promise you can remove the done callback and simply return view.fileSet here and also return view.afterVisible so the test will catch any errors.

This comment has been minimized.

@eoger

eoger May 20, 2015
Author Contributor

Good catch, I did the change and rebased everything

@eoger eoger force-pushed the issue-2428-avatar-error-redirect branch from 96e6c49 to 6b6a5f7 May 20, 2015
@coveralls
Copy link

@coveralls coveralls commented May 20, 2015

Coverage Status

Coverage increased (+0.0%) to 98.23% when pulling 6b6a5f7 on issue-2428-avatar-error-redirect into ee6ba21 on master.

@zaach
Copy link
Contributor

@zaach zaach commented May 20, 2015

Nice! 👍

zaach added a commit that referenced this pull request May 20, 2015
fix(avatars): Redirect to settings/avatar/change on error
@zaach zaach merged commit 83d3fb1 into master May 20, 2015
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.0%) to 98.23%
Details
@zaach zaach deleted the issue-2428-avatar-error-redirect branch May 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants