소스 검색

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

Simon Van Mierlo 9 년 전
부모
커밋
19a45dc85f
1개의 변경된 파일2개의 추가작업 그리고 6개의 파일을 삭제
  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'};
 		},