diff --git a/www/file/main.js b/www/file/main.js index 2f553cf20..9c76e3618 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -175,8 +175,8 @@ define([ if (!uploadMode) { var src = Cryptpad.getBlobPathFromHex(hexFileName); return Cryptpad.fetch(src, function (e, u8) { + if (e) { return void Cryptpad.alert(e); } // now decrypt the u8 - if (e) { return window.alert('error'); } var cryptKey = secret.keys && secret.keys.fileKeyStr; var key = Nacl.util.decodeBase64(cryptKey);