ScottyLabs / print-api

Unified printing for CMU on multiple devices.
2 stars 2 forks source link

Better error handling pages #5

Open skrulcik opened 8 years ago

skrulcik commented 8 years ago

Create a parametrized error page that explains what error occurred

jxu commented 8 years ago

For reference: http://flask.pocoo.org/docs/0.11/patterns/errorpages/

I've put error 413 in upload for now, but it can be put elsewhere

jxu commented 7 years ago

The redirects (return redirect(request.url)) and success page ("Would have printed: ") should be actual pages, or alternatively use AJAX or the like to update the page without redirecting ( @yiblet )