Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoni committed Jan 29, 2025
1 parent ff8233c commit 89640fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ def organization_patch(context, data_dict):
}
public_package = get_action("package_search")(context, rdata_dict)
if public_package.get("count") > 0:
raise ValidationError({"message": _(f"Team has public {public_package.get('count')} dataset(s) and cannot be made private")})
raise ValidationError({"message": _(f"Team has {public_package.get('count')} public dataset(s) and cannot be made private")})
return old_organization_patch(context, data_dict)

def validate_visibility(context, data_dict):
Expand Down

0 comments on commit 89640fe

Please sign in to comment.