From 5dc0e25008951ff97b7353af39d10a37864d24ed Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Wed, 4 Jun 2014 20:31:11 -0700 Subject: [PATCH] Cleaning up indentation --- .../rarchives/ripme/ripper/DownloadFileThread.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java b/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java index 6c163347..011af356 100644 --- a/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java +++ b/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java @@ -106,12 +106,12 @@ public class DownloadFileThread extends Thread { out.write(response.bodyAsBytes()); out.close(); break; // Download successful: break out of infinite loop - } catch (HttpStatusException hse) { - logger.error("[!] HTTP status " + hse.getStatusCode() + " while downloading from " + url); - observer.downloadErrored(url, "HTTP status code " + hse.getStatusCode() + " while downloading " + url.toExternalForm()); - if (hse.getStatusCode() == 404 && Utils.getConfigBoolean("errors.skip404", false)) { - return; - } + } catch (HttpStatusException hse) { + logger.error("[!] HTTP status " + hse.getStatusCode() + " while downloading from " + url); + observer.downloadErrored(url, "HTTP status code " + hse.getStatusCode() + " while downloading " + url.toExternalForm()); + if (hse.getStatusCode() == 404 && Utils.getConfigBoolean("errors.skip404", false)) { + return; + } } catch (IOException e) { logger.error("[!] Exception while downloading file: " + url + " - " + e.getMessage(), e); }