Changeset 13539

Show
Ignore:
Timestamp:
11/21/07 17:52:21 (1 year ago)
Author:
tepehe
Message:

Added the PEAR_error message to clarify what went wrong

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/MidCOM_2_8/midcom.helper.datamanager2/exec/captcha.php

    r5278 r13539  
    4242//$result = $captcha->init($width, $height, $passphrase, $options); 
    4343$result = $captcha->init($height, $width, $passphrase, $options); 
    44  
    4544if (PEAR::isError($result)) 
    4645{ 
     
    5554{ 
    5655    $_MIDCOM->generate_error(MIDCOM_ERRCRIT, 
    57         'Failed to generate Captcha, captcha rendering failed.'); 
     56        'Failed to generate Captcha, captcha rendering failed. <br /><strong>Reason</strong>: '.$image->getMessage()); 
    5857    // This will exit. 
    5958}