From cf8606b01a82b95a3bac14fb09ce6f8e70efcef2 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 12:22:11 +0300 Subject: [PATCH] Update client.js --- client.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index a448f2b3..efac4ef3 100644 --- a/client.js +++ b/client.js @@ -481,7 +481,12 @@ CloudClient.Util = (function(){ this.getCurrentFile = function(){ var lCurrent = lThis.getByClass(CloudCommander.CURRENT_FILE)[0]; if(!lCurrent) - console.log('Error: Can not find Current File'); + this.addCloudStatus({ + code : -1, + msg : 'Error: can not find ' + + 'CurrentFile ' + + 'in getCurrentFile' + }); return lCurrent; };