Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise error in proper places #123

Open
theSage21 opened this issue May 16, 2019 · 5 comments
Open

Raise error in proper places #123

theSage21 opened this issue May 16, 2019 · 5 comments
Labels
easy easy to do good first issue Good for newcomers

Comments

@theSage21
Copy link
Member

It might be a good idea to use abort(404, <reason>) in some places like

some places however don't require the error. For example this

does not require an error.

@theSage21 theSage21 added good first issue Good for newcomers easy easy to do labels May 16, 2019
@soumilk
Copy link
Member

soumilk commented May 25, 2019

I would like to take this issue,
basically in this, instead of a statement "contest does not exist", we should raise an abort 404 page error ?

@theSage21
Copy link
Member Author

that's the basic idea. you will need to find other places in the code where this has to be done.

@soumilk
Copy link
Member

soumilk commented May 26, 2019

ohk ... i am on it

@soumilk
Copy link
Member

soumilk commented May 26, 2019

I have gone through the server.py and it seems that it has raised abort(404) at certain places already, couldn't find places which require error. Help required .
And I thought to add a cool looking error page 404. Have a look, we can add it to the project.

Screenshot from 2019-05-26 14-29-27

@theSage21
Copy link
Member Author

well, there are a few places where we are returning the string "contest inactive" or something like that. I was thinking if we could turn that into these pages it would be nice.

As for the 404 page it does look cool 😍 but you'll need to accomodate ALL error codes and not just 404 since that template gets called for ALL errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy easy to do good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants