Browse Source

changed such that actions can return whatever they want instead of crashing on anything which is not (undefined or true)

Simon Van Mierlo 10 years ago
parent
commit
19a45dc85f
1 changed files with 2 additions and 6 deletions
  1. 2 6
      mmmk.js

+ 2 - 6
mmmk.js

@@ -790,13 +790,9 @@ with AToMPM.  If not, see <http://www.gnu.org/licenses/>.
 			else if( type == 'accessor' )	
 				return res;
 
-			/* completed action or passed constraint */
-			else if( res == undefined || res == true )
-				;
-
 			/* failed constraint */
-			else
-				return {'$err':type+' ('+desc+') failed on :: '+res};
+			else if( res == false )
+				return {'$err':type+' ('+desc+') failed'};
 		},