Changeset 8540 in josm for trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
- Timestamp:
- 2015-06-27T21:43:35+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r8510 r8540 317 317 SessionId sessionId = extractOsmSession(connection); 318 318 if (sessionId == null) 319 throw new OsmOAuthAuthorizationException(tr("OSM website did not return a session cookie in response to ''{0}'',", url.toString())); 319 throw new OsmOAuthAuthorizationException( 320 tr("OSM website did not return a session cookie in response to ''{0}'',", url.toString())); 320 321 return sessionId; 321 322 } catch (IOException e) { … … 347 348 sessionId.token = extractToken(connection); 348 349 if (sessionId.token == null) 349 throw new OsmOAuthAuthorizationException(tr("OSM website did not return a session cookie in response to ''{0}'',", url.toString())); 350 throw new OsmOAuthAuthorizationException(tr("OSM website did not return a session cookie in response to ''{0}'',", 351 url.toString())); 350 352 } catch (IOException e) { 351 353 throw new OsmOAuthAuthorizationException(e); … … 396 398 int retCode = connection.getResponseCode(); 397 399 if (retCode != HttpURLConnection.HTTP_MOVED_TEMP) 398 throw new OsmOAuthAuthorizationException(tr("Failed to authenticate user ''{0}'' with password ''***'' as OAuth user", userName)); 400 throw new OsmOAuthAuthorizationException(tr("Failed to authenticate user ''{0}'' with password ''***'' as OAuth user", 401 userName)); 399 402 } catch (OsmOAuthAuthorizationException e) { 400 403 throw new OsmLoginFailedException(e.getCause());
Note:
See TracChangeset
for help on using the changeset viewer.