return error when creating table fails (#4305)
This commit is contained in:
1 file changed
+1
-1
@@ -45,7 +45,7 @@ func Open(ctx context.Context, opt ...Option) (*db.DB, error) {
|
||||
switch {
|
||||
case opts.withDbType == dbw.Sqlite:
|
||||
if err := createTables(ctx, conn); err != nil {
|
||||
errors.Wrap(ctx, err, op)
|
||||
return nil, errors.Wrap(ctx, err, op)
|
||||
}
|
||||
default:
|
||||
return nil, errors.New(ctx, errors.InvalidParameter, op, fmt.Sprintf("%q is not a supported cache store type", opts.withDbType))
|
||||
|
||||
Reference in new issue
Block a user