Skip to content

Commit

Permalink
Put the error message on one line
Browse files Browse the repository at this point in the history
This reads a little neater I think!
  • Loading branch information
John Peart committed Feb 15, 2022
1 parent 1bc793b commit 48e84b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/main/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ def upload():
else:
if len(files) != 2:
error_message = (
"Number of files is incorrect. Please only upload two files"
"Number of files is incorrect. Please only upload two files."
)
elif not valid_files(filenames):
error_message = (
"Filenames incorrect. Please label your files as 'mentees.csv' and"
" 'mentors.csv'"
"Your filenames are incorrect. Please label your files as 'mentees.csv' and 'mentors.csv'."
)
else:
error_message = "Unspecified error. Please contact the admin team"
Expand Down

0 comments on commit 48e84b6

Please sign in to comment.