Fix error control flow

https://app.getsentry.com/id/id/group/4061434/
This commit is contained in:
John Firebaugh
2013-03-26 14:39:52 -07:00
parent aff363b101
commit 8f76661987
+1 -1
View File
@@ -109,7 +109,7 @@ iD.OAuth = function(context) {
var l = iD.ui.loading(context.container(), 'contacting openstreetmap...');
function accessTokenDone(err, xhr) {
if (err) callback(err);
if (err) return callback(err);
l.remove();
var access_token = ohauth.stringQs(xhr.response);
token('oauth_token', access_token.oauth_token);