particle_select_err function

Error handler for the particle selection call