Add 2 migrations for ids and boltdb; minor refactor to creds service

This commit is contained in:
mitchell 2019-07-20 04:12:58 -04:00
parent cf90993d4e
commit a67be14fcb
13 changed files with 203 additions and 58 deletions

View file

@ -0,0 +1,19 @@
package migration
import (
"fmt"
"os"
"runtime"
)
func Check(err error) {
if err != nil {
_, _, line, ok := runtime.Caller(1)
if ok {
fmt.Printf("%v: %s\n", line, err)
os.Exit(1)
}
fmt.Println(err)
}
}