projects
/
facebook-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unparsable page-migration errors are logged at level ERROR
[facebook-utils]
/
src
/
main
/
java
/
de
/
juplo
/
facebook
/
exceptions
/
PageMigratedException.java
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
(file)
--- 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())
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));
}
oldId = Long.parseLong(matcher.group(1));
newId = Long.parseLong(matcher.group(2));
}