[snippets] Correct default case err def