mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-25 15:49:18 -04:00
log on missing key
This commit is contained in:
1 file changed
+1
-1
@@ -76,7 +76,7 @@ func (s Store) Write(rec *mstore.Record) error {
|
||||
path := filepath.Join(s.mountPath, rec.Key)
|
||||
|
||||
if len(rec.Key) < 1 {
|
||||
// TODO log error: empty key
|
||||
s.Logger.Error().Msg("key cannot be empty")
|
||||
return fmt.Errorf("%v", "key is empty")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user