mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-11-04 08:43:52 +01:00 
			
		
		
		
	Compare commits
	
		
			3 commits
		
	
	
		
			2e4f825240
			...
			bb5a879d6c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							 | 
						bb5a879d6c | ||
| 
							 | 
						f96a5edbb9 | ||
| 
							 | 
						cc115f1e76 | 
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -95,9 +95,7 @@ public final class OkHttpConnectionFactory {
 | 
				
			||||||
            if (rsp.isSuccessful()) {
 | 
					            if (rsp.isSuccessful()) {
 | 
				
			||||||
                try (final ResponseBody responseBody = rsp.peekBody(ERRORS_PREFIX.length())) {
 | 
					                try (final ResponseBody responseBody = rsp.peekBody(ERRORS_PREFIX.length())) {
 | 
				
			||||||
                    if (ERRORS_PREFIX.equals(responseBody.string())) {
 | 
					                    if (ERRORS_PREFIX.equals(responseBody.string())) {
 | 
				
			||||||
                        try (final ResponseBody body = rsp.body()) {
 | 
					                        throw new IOException(responseBody.string());
 | 
				
			||||||
                            throw new IOException(body.string());
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                } catch (final IOException e) {
 | 
					                } catch (final IOException e) {
 | 
				
			||||||
                    // Log the error as debug (and therefore, "expected") or at error level
 | 
					                    // Log the error as debug (and therefore, "expected") or at error level
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue