Skip to content

Commit

Permalink
Might want to call those asserts before an abort()…
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgus committed Jan 20, 2013
1 parent c487df4 commit 4a2fe82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FMDatabase.m
Expand Up @@ -249,8 +249,8 @@ - (void)warnInUse {

#ifndef NS_BLOCK_ASSERTIONS
if (_crashOnErrors) {
abort();
NSAssert1(false, @"The FMDatabase %@ is currently in use.", self);
abort();
}
#endif
}
Expand All @@ -263,8 +263,8 @@ - (BOOL)databaseExists {

#ifndef NS_BLOCK_ASSERTIONS
if (_crashOnErrors) {
abort();
NSAssert1(false, @"The FMDatabase %@ is not open.", self);
abort();
}
#endif

Expand Down

0 comments on commit 4a2fe82

Please sign in to comment.