Skip to content

Commit b0865e4

Browse files
committed
fix: do not silently skip errors
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
1 parent 7be179c commit b0865e4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugin.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ func (p *Plugin) Serve() chan error {
140140

141141
func (p *Plugin) checkAndSaveStorage(ctx context.Context, drStr string, name, cfgkey string) error {
142142
if _, ok := p.constructors[drStr]; !ok {
143-
p.log.Warn("no such constructor was registered", zap.String("requested", drStr), zap.Any("registered", p.constructors))
144-
return nil
143+
return errors.Errorf("no such constructor was registered: %s, registered: %v", drStr, p.constructors)
145144
}
146145

147146
// use only key for the driver registration, for example, rr-boltdb should be globally available

0 commit comments

Comments
 (0)