Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

trigger_error function

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
smartymoon
Smarty Rookie


Joined: 29 Apr 2003
Posts: 15

PostPosted: Sat Aug 14, 2004 7:18 pm    Post subject: trigger_error function Reply with quote

When I run smarty class, I got this error message.

Warning: Smarty error: file:hello.php is not readable in C:\php4\smarty\Smarty\S
marty.class.php on line 1083

This error message is from "trigger_error" function.


My problem is that from this message I can't find where the error was occurred.


So I suggest to add one more parameter to this funtion
from
function trigger_error($error_msg, $error_type = E_USER_WARNING)

to
function trigger_error($ONE_MORE_PARAM, $error_msg, $error_type = E_USER_WARNING)


Maybe this $ONE_MORE_PARAM can be the FUNCTION NAME, PLUGIN NAME or the LINE NUMBER of the source where the error was occurred.

thanks

s moon
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP