Returning type:error from your success callback lets the message render correctly, but none of the retry functionality works (the xhr.status is obviously < 500).
return {
type: 'error'
, xhr: {
status: 500
}
}
So I don't think extending the xhr object is a good idea, but just as an example.
There's still a lot going on in run() I need to get my head around :)
This feature would be a great addition.
Returning type:error from your success callback lets the message render correctly, but none of the retry functionality works (the xhr.status is obviously < 500).
So I don't think extending the xhr object is a good idea, but just as an example.
There's still a lot going on in run() I need to get my head around :)