error handling for non-existent snippet