Fix autostore not displaying the error message when over pin limit

This commit is contained in:
yflory
2018-09-17 11:23:35 +02:00
parent c1ef8243a1
commit 179df27e3c
6 changed files with 15 additions and 7 deletions

View File

@@ -465,7 +465,7 @@ define([
if (data.password) { pad.password = data.password; }
if (data.channel) { pad.channel = data.channel; }
store.manager.addPad(data.path, pad, function (e) {
if (e) { return void cb({error: "Error while adding the pad:"+ e}); }
if (e) { return void cb({error: e}); }
sendDriveEvent('DRIVE_CHANGE', {
path: ['drive', UserObject.FILES_DATA]
}, clientId);