Skip to content
This repository
Browse code

Improve error message on 404

  • Loading branch information...
commit ec60a19bbf33c8f9cd205651c76ad0742be79081 1 parent ebf29ad
Morten Andersen-Gott authored October 12, 2012
2  spring-social-yammer/src/main/java/org/springframework/social/yammer/api/impl/YammerErrorHandler.java
@@ -51,7 +51,7 @@ private void handleClientErrors(ClientHttpResponse response) throws IOException
51 51
 			// limits, 403 will be returned
52 52
 			throw new RateLimitExceededException();
53 53
 		} else if (statusCode == HttpStatus.NOT_FOUND) {
54  
-			throw new ResourceNotFoundException(statusCode.toString());
  54
+			throw new ResourceNotFoundException(statusCode.toString()+" Resources does not exists or you were trying to create a duplicate ");
55 55
 		}else if(statusCode == HttpStatus.BAD_REQUEST){
56 56
 			throw new OperationNotPermittedException("The resources does not exist or you don't have permission to do that (HTTP 400)");
57 57
 		}

0 notes on commit ec60a19

Please sign in to comment.
Something went wrong with that request. Please try again.