Display a proper error message when trying to edit a scalar