From: Kai Moritz Date: Sat, 7 Nov 2015 14:44:04 +0000 (+0100) Subject: Unparsable page-migration errors are logged at level ERROR X-Git-Tag: facebook-utils-2.5.0~7 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=48b14bf1e4e2fafdaa26bffcafa10a11a6312b38;p=facebook-errors Unparsable page-migration errors are logged at level ERROR --- diff --git a/src/main/java/de/juplo/facebook/exceptions/PageMigratedException.java b/src/main/java/de/juplo/facebook/exceptions/PageMigratedException.java index dfa76cf..88917dc 100644 --- a/src/main/java/de/juplo/facebook/exceptions/PageMigratedException.java +++ b/src/main/java/de/juplo/facebook/exceptions/PageMigratedException.java @@ -23,7 +23,11 @@ public class PageMigratedException extends OAuthException super(error); Matcher matcher = pattern.matcher(error.message); if (!matcher.find()) - throw new RuntimeException("Could not parse migration-error: " + error.message); + { + String warning = "Could not parse migration-error: " + error.message; + LOG.error(warning); + throw new RuntimeException(warning); + } oldId = Long.parseLong(matcher.group(1)); newId = Long.parseLong(matcher.group(2)); }