Skip to content

Commit 6be3ba0

Browse files
authored
Merge pull request #3495 from thuydx55/patch-1
Fix typo of error message
2 parents 8833b4d + ea5cbd3 commit 6be3ba0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cocos2d/core/CCActionManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cc.ActionManager = cc.Class.extend(/** @lends cc.ActionManager# */{
101101
if(!action)
102102
throw new Error("cc.ActionManager.addAction(): action must be non-null");
103103
if(!target)
104-
throw new Error("cc.ActionManager.addAction(): action must be non-null");
104+
throw new Error("cc.ActionManager.addAction(): target must be non-null");
105105

106106
//check if the action target already exists
107107
var element = this._hashTargets[target.__instanceId];

0 commit comments

Comments
 (0)