* Flashes errors to the errorsBag. You can read these errors via the "@error" tag. * Appends new messages to the existing collection. * * @param errorsCollection - Collection of error messages * * @example * session.flashErrors({ * general: 'Something went wrong', * valid
(errorsCollection: Record<string, string | string[]>)
| 439 | * }) |
| 440 | */ |
| 441 | flashErrors(errorsCollection: Record<string, string | string[]>) { |
| 442 | this.flash({ errorsBag: errorsCollection }) |
| 443 | } |
| 444 | |
| 445 | /** |
| 446 | * Flashes error messages for form fields to the inputErrorsBag, the same |
no test coverage detected