Skip loading corrupted user
This commit is contained in:
parent
2e03c1449c
commit
e48568fbe7
|
@ -122,9 +122,9 @@ func initUsers() {
|
||||||
|
|
||||||
err := json.Unmarshal(bytes, user)
|
err := json.Unmarshal(bytes, user)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Errorf("Parses [%s] error: %v", name, err)
|
logger.Errorf("Parses [%s] error: %v, skip loading this user", name, err)
|
||||||
|
|
||||||
os.Exit(-1)
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compatibility upgrade (1.3.0): https://github.com/b3log/wide/issues/83
|
// Compatibility upgrade (1.3.0): https://github.com/b3log/wide/issues/83
|
||||||
|
|
Loading…
Reference in New Issue