Index: trunk/phase3/includes/Hooks.php |
— | — | @@ -130,7 +130,9 @@ |
131 | 131 | } else { |
132 | 132 | $prettyFunc = strval( $callback ); |
133 | 133 | } |
134 | | - throw new MWException( "Invalid NULL return from broken hook $prettyFunc" ); |
| 134 | + throw new MWException( "Detected bug in an extension! " . |
| 135 | + "Hook $prettyFunc failed to return a value; " . |
| 136 | + "should return true to continue hook processing or false to abort." ); |
135 | 137 | } else if (!$retval) { |
136 | 138 | return false; |
137 | 139 | } |