Hi

I Drupal 5, I used this for loging error:

error_handler(E_USER_ERROR, 'Could not query', __FILE__, __LINE__);

However, when I use it for Drupal 6, I got Fatal error: undefined function. How I can fix this problem

Many thanks
john