Skip to content

Commit

Permalink
flip strings for correct regex matching
Browse files Browse the repository at this point in the history
  • Loading branch information
darkv committed Jun 10, 2014
1 parent 7a43065 commit c11dd99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public boolean databaseContextShouldHandleDatabaseException(EODatabaseContext da
throw e;
}
String exceptionsRegex = ERXProperties.stringForKeyWithDefault(ERX_ADAPTOR_EXCEPTIONS_REGEX, ERX_ADAPTOR_EXCEPTIONS_REGEX_DEFAULT);
if(!handled && throwable.getMessage() != null && exceptionsRegex.matches(throwable.getMessage())) {
if(!handled && throwable.getMessage() != null && throwable.getMessage().matches(exceptionsRegex)) {
NSArray models = databaseContext.database().models();
for(Enumeration e = models.objectEnumerator(); e.hasMoreElements(); ) {
EOModel model = (EOModel)e.nextElement();
Expand Down

0 comments on commit c11dd99

Please sign in to comment.