The issue is that in 2.1 form.globalError
is an Option
, so you'll need to do a get
before accessing the FormError
.
Something like:
@form.globalError.get.message
Be aware that could fail if the Option
is None
. Better use pattern matching or getOrElse
to be safe.