Add traling breakline to case where errors come in a array

This commit is contained in:
Luis Ramos
2020-02-20 10:06:10 +00:00
parent 2711736004
commit 1803ea3c38

View File

@@ -7,7 +7,7 @@ angular.module("admin.utils").factory "ErrorsParser", ->
errorsString = ""
if errors.length > 0
# it is an array of errors
errorsString = errors.join("\n")
errorsString = errors.join("\n") + "\n"
else
# it is a hash of errors
keys = Object.keys(errors)