summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-06-08 20:12:24 +0200
committertomsmeding <tom.smeding@gmail.com>2016-06-08 20:12:24 +0200
commit2451eeee2b812af2c524adfb38809c17ad4389c6 (patch)
treec8089137b76202d72b69fbdf245595e6c06e8d86
parent63ba6f4b8a6ce4370d7846102028b06e526c83ee (diff)
Fix "Forbidden" "link"
-rwxr-xr-xclient.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/client.js b/client.js
index 51a5d33..606a331 100755
--- a/client.js
+++ b/client.js
@@ -171,10 +171,8 @@ function sendfile(fname,retries){
res.on("end",function(){
if(res.statusCode!=200){
if(retries>0)sendfile(fname,retries-1);
- else {
- dialog.warn("Could not upload image! Are your credentials still okay?\n\n"+body);
- return;
- }
+ else dialog.warn("Could not upload image! Are your credentials still okay?\n\n"+body);
+ return;
}
console.log("Successful upload");
toClipboard.sync(body.trim());