mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(cloudfunc) formatMsg: add empty name condition
This commit is contained in:
parent
d849ecd168
commit
9fc5e88186
1 changed files with 2 additions and 1 deletions
|
|
@ -43,7 +43,8 @@ var Util, exports, CloudFunc = {};
|
|||
|
||||
CloudFunc.formatMsg = function(pMsg, pName, pStatus) {
|
||||
var status = pStatus || 'ok',
|
||||
msg = pMsg + ': ' + status + '("' + pName + '")';
|
||||
name = !pName ? '': '("' + pName + '")',
|
||||
msg = pMsg + ': ' + status + name;
|
||||
|
||||
return msg;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue