wso2/jaggery

jaggery.conf errorPages expects json but not a list

Opened this issue · 0 comments

http://jaggeryjs.org/documentation.jag?api=jagconf

the "errorPages" part of config described in documentation produces error on deploy

"errorPages": [{
"errorCode": "500",
"location": "/error1.html"
}, {
"errorCode": "404",
"location": "/error.html"
}],

in "docs" sample app itself "errorPages" described as

"errorPages":
{
"404":"/404.jag"
}

and works fine.

please fix the documentation.