Skip loading corrupted user

This commit is contained in:
Liang Ding 2015-12-30 10:06:32 +08:00
parent 2e03c1449c
commit e48568fbe7
1 changed files with 2 additions and 2 deletions

View File

@ -122,9 +122,9 @@ func initUsers() {
err := json.Unmarshal(bytes, user)
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