Changeset 17830

Show
Ignore:
Timestamp:
10/01/08 15:05:38 (2 months ago)
Author:
bergie
Message:

Catch missing person error

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/core/user.php

    r17558 r17830  
    230230        { 
    231231            $this->_storage = new midgard_person(); 
    232             if (! $this->_storage->get_by_guid($id)) 
     232            try 
     233            { 
     234                $this->_storage->get_by_guid($id); 
     235            } 
     236            catch (midgard_error_exception $e) 
    233237            { 
    234238                debug_push_class(__CLASS__, __FUNCTION__); 
    235                 debug_add("Failed to retrieve the person GUID {$id}: " . mgd_errstr(), MIDCOM_LOG_INFO); 
     239                debug_add("Failed to retrieve the person GUID {$id}: " . $e->getMessage(), MIDCOM_LOG_INFO); 
    236240                debug_pop(); 
    237241                return false;