Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix migration failure detection

  • Loading branch information...
commit 1208ab87a6b3f12dba5cc562566ace2aaf40f22e 1 parent fd66153
@marcuswestin authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 Classes/FunSQL/SQL.m
View
7 Classes/FunSQL/SQL.m
@@ -105,13 +105,14 @@ - (void)_finish {
err = makeError(exception.reason);
}
if (err) {
- NSLog(@"Error: %@", err);
+ NSLog(@"FAILED migration: %@", err);
rollback();
fatal(err);
+ } else {
+ NSLog(@"Completed migration %@", migration[@"name"]);
+ [_completedMigrations addObject:migration[@"name"]];
}
}];
- NSLog(@"Completed migration %@", migration[@"name"]);
- [_completedMigrations addObject:migration[@"name"]];
}];
[Files writeDocumentJson:[self migrationDoc] object:@{@"completedMigrations": _completedMigrations}];
Please sign in to comment.
Something went wrong with that request. Please try again.