Skip to content

Commit

Permalink
✏️ Minor edits to 404 messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jnywong committed Nov 23, 2024
1 parent 8c2b7c2 commit ce8f38a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frx_challenges/web/views/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def detail(request: HttpRequest, id: int) -> HttpResponse:
try:
submission = Submission.objects.get(id=id)
except Submission.DoesNotExist:
raise Http404("Submission does not exist")
raise Http404("Submission does not exist.")
is_collaborator = _validate_collaborator(request, id)

versions = submission.versions.all()
Expand Down
2 changes: 1 addition & 1 deletion frx_challenges/web/views/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
def upload(request: HttpRequest, id: int) -> HttpResponse:
is_collaborator = _validate_collaborator(request, id)
if not is_collaborator:
raise Http404("You are not a collaborator of this submission.")
raise Http404("Uploads are only available to submission collaborators.")
if request.method == "POST":
form = UploadForm(data=request.POST, files=request.FILES, id=id)
if form.is_valid():
Expand Down

0 comments on commit ce8f38a

Please sign in to comment.