remove some fatal vioelent exits
This commit is contained in:
@@ -2,7 +2,6 @@ package helpers
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
@@ -159,7 +158,7 @@ func ReadMessage(messageFilename string) ([]string, []string, string, error) {
|
||||
if _, err := os.Stat(filepath.Join(client.GetConfig().StoragePath, identity.Uuid, "files")); os.IsNotExist(err) {
|
||||
err = os.MkdirAll(filepath.Join(client.GetConfig().StoragePath, identity.Uuid, "files"), 0700)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
return nil, nil, "ReadMessage: MkdirAll", err
|
||||
}
|
||||
}
|
||||
for _, file := range usermsg.Files {
|
||||
|
||||
Reference in New Issue
Block a user