asmError plugin. setError and unsetError functions