When an error is encountered, an error message doesn't include necessary details where exactly the error originated from.
In some deep-nested cases it may be difficult to debug some obscure errors because of that.
Please, include the specific function name that thrown the error to the error message.
As a bonus, that would be great to have a function/variable (a-la lastError) to display call stack.
С уважением,
Михаил Каганский