@@ -109,7 +109,7 @@ trying to run these checks with:
109
109
[3]: %s
110
110
`
111
111
112
- var errStrFixConfig = `config key invalid: %s %s
112
+ var errStrFixConfig = `config key invalid: %s %v
113
113
You may be able to get this error to go away by setting it again:
114
114
115
115
ipfs config %s true
@@ -221,12 +221,15 @@ func userAskedToSkipFuseCheck(node *core.IpfsNode) (skip bool, err error) {
221
221
if err != nil {
222
222
return false , nil // failed to get config value. dont skip check.
223
223
}
224
- s , ok := val .(string )
225
- if ! ok {
226
- // got config value, but it's invalid... dont skip check, ask the user to fix it...
227
- return false , fmt .Errorf (errStrFixConfig , dontCheckOSXFUSEConfigKey , val ,
228
- dontCheckOSXFUSEConfigKey )
224
+ if s , ok := val .(string ); ok {
225
+ return s == "true" , nil
229
226
}
230
- // only "true" counts as telling us to skip.
231
- return s == "true" , nil
227
+
228
+ if b , ok := val .(bool ); ok {
229
+ return b , nil
230
+ }
231
+
232
+ // got config value, but it's invalid... dont skip check, ask the user to fix it...
233
+ return false , fmt .Errorf (errStrFixConfig , dontCheckOSXFUSEConfigKey , val ,
234
+ dontCheckOSXFUSEConfigKey )
232
235
}
0 commit comments