Open maxwward opened 11 years ago
When user tries to add a problem to an exercise and accidentally clicks the button to submit before filling in anything an epic error is thrown.
It's right to tell the user she didn't enter what she needed to, but not with a crash message like this:
Traceback:
Environment:
Request Method: POST Request URL: http://scopeproject.herokuapp.com/exercises/4/problem/
Django Version: 1.3.1 Python Version: 2.7.4 Installed Applications: ['longerusername', 'django_extensions', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.sitemaps', 'askbot', 'askbot.deps.django_authopenid', 'south', 'askbot.deps.livesettings', 'keyedcache', 'robots', 'django_countries', 'djcelery', 'djkombu', 'followit', 'tinymce', 'storages', 'boto'] Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware', 'askbot.middleware.forum_mode.ForumModeMiddleware', 'askbot.middleware.cancel.CancelActionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'askbot.middleware.view_log.ViewLogMiddleware', 'askbot.middleware.spaceless.SpacelessMiddleware')
Traceback: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: ValidationError at /exercises/4/problem/ Exception Value: {'text': [u'This field cannot be blank.']}
Right, we disabled interactive validation of that field because the error message was appearing inappropriately, and never replaced it with anything
When user tries to add a problem to an exercise and accidentally clicks the button to submit before filling in anything an epic error is thrown.
It's right to tell the user she didn't enter what she needed to, but not with a crash message like this:
Traceback:
Environment:
Request Method: POST Request URL: http://scopeproject.herokuapp.com/exercises/4/problem/
Django Version: 1.3.1 Python Version: 2.7.4 Installed Applications: ['longerusername', 'django_extensions', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.humanize', 'django.contrib.sitemaps', 'askbot', 'askbot.deps.django_authopenid', 'south', 'askbot.deps.livesettings', 'keyedcache', 'robots', 'django_countries', 'djcelery', 'djkombu', 'followit', 'tinymce', 'storages', 'boto'] Installed Middleware: ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware', 'askbot.middleware.forum_mode.ForumModeMiddleware', 'askbot.middleware.cancel.CancelActionMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'askbot.middleware.view_log.ViewLogMiddleware', 'askbot.middleware.spaceless.SpacelessMiddleware')
Traceback: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: ValidationError at /exercises/4/problem/ Exception Value: {'text': [u'This field cannot be blank.']}