enable automatic print of context in error functions

comments?
@sonney2k
@lisitsyn