Unparsable page-migration errors are logged at level ERROR
[facebook-errors] / src / main / java / de / juplo / facebook / exceptions / PageMigratedException.java
index dfa76cf..88917dc 100644 (file)
@@ -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));
   }