From 48b14bf1e4e2fafdaa26bffcafa10a11a6312b38 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 7 Nov 2015 15:44:04 +0100 Subject: [PATCH] Unparsable page-migration errors are logged at level ERROR --- .../de/juplo/facebook/exceptions/PageMigratedException.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); } -- 2.20.1