Error snippet

MAJOR CHANGES:

* Fix snippets scope
* Change error snippet