projects
/
contrib
/
cloudeebus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
628ec3a
)
error management simplification
author
Luc Yriarte
<luc.yriarte@intel.com>
Fri, 28 Jun 2013 13:55:41 +0000
(15:55 +0200)
committer
Luc Yriarte
<luc.yriarte@intel.com>
Fri, 28 Jun 2013 13:55:41 +0000
(15:55 +0200)
cloudeebus/cloudeebus.js
patch
|
blob
|
history
diff --git
a/cloudeebus/cloudeebus.js
b/cloudeebus/cloudeebus.js
index
81dbf16
..
f3a7996
100644
(file)
--- a/
cloudeebus/cloudeebus.js
+++ b/
cloudeebus/cloudeebus.js
@@
-45,14
+45,8
@@
cloudeebus.log = function(msg) {
};
cloudeebus.getError = function(error) {
};
cloudeebus.getError = function(error) {
- if (error.desc && error.uri)
- return error.desc + " : " + error.uri;
if (error.desc)
return error.desc;
if (error.desc)
return error.desc;
- if (error.uri)
- return error.uri;
- if (error.name && error.message)
- return error.name + " : " + error.message;
if (error.message)
return error.message;
return error;
if (error.message)
return error.message;
return error;
@@
-942,7
+936,7
@@
cloudeebus.ProxyObject.prototype.connectToSignal = function(ifName, signal, hand
var errorStr = cloudeebus.getError(error);
cloudeebus.log("Error connecting to signal: " + signal + " on object: " + self.objectPath + " : " + errorStr);
if (errorCB)
var errorStr = cloudeebus.getError(error);
cloudeebus.log("Error connecting to signal: " + signal + " on object: " + self.objectPath + " : " + errorStr);
if (errorCB)
- errorCB(
cloudeebus.getError(errorStr)
);
+ errorCB(
errorStr
);
}
var arglist = [
}
var arglist = [