Skip to content

Commit

Permalink
Update bind container error message format
Browse files Browse the repository at this point in the history
  • Loading branch information
jneo8 committed Jul 17, 2020
1 parent 2fac6c8 commit 687a936
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bind_container.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package mermaid

import (
"fmt"
"github.com/spf13/viper"
"go.uber.org/dig"
"net"
Expand Down Expand Up @@ -131,7 +132,7 @@ func BindContainer(cfg *viper.Viper, container *dig.Container) error {
}
}
if err := container.Provide(getter, dig.Name(key)); err != nil {
return err
return fmt.Errorf("Get key %s err: %s", key, err)
}
}
return nil
Expand Down

0 comments on commit 687a936

Please sign in to comment.