Splitted errors handling to separate snippets