From d9f128e9236ed8b51624d850d5ce844c61f8e891 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 19 May 2017 09:12:39 +0200 Subject: [PATCH] send appropriate responses to upload rpc calls --- rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc.js b/rpc.js index 54d7c14ec..2f2b96a4c 100644 --- a/rpc.js +++ b/rpc.js @@ -635,7 +635,7 @@ var upload = function (Env, publicKey, content, cb) { } if (session.currentUploadSize > session.pendingUploadSize) { - return cb('TOO_LARGE'); + return cb('E_OVER_LIMIT'); } if (!session.blobstage) { @@ -739,7 +739,7 @@ var upload_status = function (Env, publicKey, filesize, cb) { getFreeSpace(Env, publicKey, function (e, free) { if (e) { return void cb(e); } - if (filesize >= free) { return cb('TOO_LARGE'); } + if (filesize >= free) { return cb('NOT_ENOUGH_SPACE'); } isFile(filePath, function (e, yes) { if (e) { console.error("uploadError: [%s]", e);