Skip to content

Commit

Permalink
chore: "Usage as a library" example error logging (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsarachu authored and Khaledgarbaya committed Apr 30, 2019
1 parent 84eccf5 commit 0abfeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const options = {
}
runMigration(options)
.then(() => console.log('Migration Done!'))
.catch((e) => console.error)
.catch((e) => console.error(e))
```

In your migration description file, export a function that accepts the `migration` object as its argument. For example:
Expand Down

0 comments on commit 0abfeb3

Please sign in to comment.