Fix typo in error message
I've never written a line of go in my life, but I came across this typo while using go-ipfs and thought I might as well just fix it myself. I'm pretty sure you guys are really busy. License: MIT Signed-off-by: Max Kerp <maxkerp@gmail.com>
Max Kerp committed
Apr 11, 2018 at 15:14 UTC
aec1713885e5048fbe24c78d68bada9ad1d8c02a
1 file changed
+1
-1
repo/fsrepo/fsrepo.go
+1
-1
@@ -398,7 +398,7 @@ func (r *FSRepo) openDatastore() error {
398
if r.config.Datastore.Type != "" || r.config.Datastore.Path != "" {
399
return fmt.Errorf("old style datatstore config detected")
400
} else if r.config.Datastore.Spec == nil {
401
- return fmt.Errorf("required Datastore.Spec entry missing form config file")
401
+ return fmt.Errorf("required Datastore.Spec entry missing from config file")
402
}
403
404
dsc, err := AnyDatastoreConfig(r.config.Datastore.Spec)