[procname]
which will return me the name of the actual proc.
like: set procname [procname]
I tryed to make such a proc which will return this while invoke a errormessage (and catch this) and then split $::errorInfo.
but i don`t get it to work.
Maybe there is an easyer way like a simple tcl command which i don`t know. please let me know
why dont you use catch? you can get a detailed errorInfo like that:
if { [catch {procname params} err] } {
puthelp "NOTICE nick :$err"
putlog $errorInfo
}
err will contain the 1 line error from the proc, errorInfo will contain the multi-line trace back of the error with whole "invoked within on line x" thing. Both catch and errorInfo should contain the procname which caused the error.