Why is the category error
of Flask flash messages not working for me?
flash('Error message', category='error')
I get the following invisible background instead of the red one. What could be the reason?
Other info
Using all the other known categories ('success'
, 'info'
, 'warning'
) works pretty fine for me: I always get the correct message with the correct color:
You should use "
danger
" category instead of "error
". For example: