Skip to content

Commit

Permalink
Dependencies (#125)
Browse files Browse the repository at this point in the history
* Updated dependencies

* Returning Error instead of string
  • Loading branch information
dolezel authored Oct 9, 2017
1 parent 3a6a4e7 commit 78fa3ef
Show file tree
Hide file tree
Showing 3 changed files with 3,864 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Migration {
const pgm = new MigrationBuilder(this.options);

if (this.down === false) {
return Promise.reject(`User has disabled down migration on file: ${this.name}`);
return Promise.reject(new Error(`User has disabled down migration on file: ${this.name}`));
} else if (this.down === undefined) {
// automatically infer the down migration by running the up migration in reverse mode...
pgm.enableReverseMode();
Expand Down
Loading

0 comments on commit 78fa3ef

Please sign in to comment.