From 71bdf4a745f9fbc8fb2847e0240b690bb4275c04 Mon Sep 17 00:00:00 2001 From: Ryan Kaldari Date: Thu, 8 Mar 2012 00:34:42 +0000 Subject: [PATCH] better error message and comment --- includes/api/ApiBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index bf197b32e4..a8c3cc7f87 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -811,8 +811,8 @@ abstract class ApiBase extends ContextSource { if ( $type == 'boolean' ) { if ( isset( $default ) && $default !== false ) { - // Having a default value of anything other than 'false' is pointless - ApiBase::dieDebug( __METHOD__, "Boolean param $encParamName's default is set to '$default'" ); + // Having a default value of anything other than 'false' is not allowed + ApiBase::dieDebug( __METHOD__, "Boolean param $encParamName's default is set to '$default'. Boolean parameters must default to false." ); } $value = $this->getRequest()->getCheck( $encParamName ); -- 2.20.1