pressly / goose

A database migration tool. Supports SQL migrations and Go functions.

Home Page:http://pressly.github.io/goose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provider: add recover function for Go migrations to gracefully handle panics

mfridman opened this issue · comments

We can improve error handling in the Provider operations by detecting panics in user-defined Go functions and recovering gracefully, bubbling up an error with the stack trace.