better error handling for features prop when adding/updating sources