mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-12 14:08:36 -07:00
store/server: normalized error messages/formatting
This commit is contained in:
@@ -52,7 +52,7 @@ func RegisterPeerStoreDriver(name string, driver PeerStoreDriver) {
|
||||
func OpenPeerStore(cfg *DriverConfig) (PeerStore, error) {
|
||||
driver, ok := peerStoreDrivers[cfg.Name]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("storage: unknown driver %q (forgotten import?)", cfg)
|
||||
return nil, fmt.Errorf("storage: unknown PeerStoreDriver %q (forgotten import?)", cfg)
|
||||
}
|
||||
|
||||
return driver.New(cfg)
|
||||
|
||||
Reference in New Issue
Block a user