Add (minor) information on error
authorFrederic PAUT <frederic.paut@linux.intel.com>
Wed, 10 Jul 2013 08:57:16 +0000 (10:57 +0200)
committerFrederic PAUT <frederic.paut@linux.intel.com>
Wed, 10 Jul 2013 08:57:16 +0000 (10:57 +0200)
cloudeebus/cloudeebus.js

index 92d3108..4cc6f53 100644 (file)
@@ -46,18 +46,18 @@ cloudeebus.log = function(msg) {
 
 cloudeebus.getError = function(error) {
        if (error.desc && error.uri)
-               return error.desc + " : " + error.uri; // error cloudeebus (from python)
+               return error.desc + " : " + error.uri; // Python exception (cloudeebus.py)
        if (error.desc)
                return error.desc;
        if (error.uri)
                return error.uri;
        if (error.name && error.message)
-               return error.name + " : " + error.message;
+               return error.name + " : " + error.message; // Javascript exception
        if (error.message)
                return error.message;
        if (error.name)
                return error.name;
-       return error; // error from Autobahn
+       return error; // Autobahn error
 };
 
 cloudeebus.versionCheck = function(version) {