robtweed/qewd

differences in error handling

killmenot opened this issue · 1 comments

Hi @robtweed

If we take a look at no docment store logic, we can see that it uses customError function
https://github.com/robtweed/qewd/blob/master/lib/appHandler.js#L113-L119

However, if we take a look at session is not authenticated logic
https://github.com/robtweed/qewd/blob/master/lib/appHandler.js#L271-L278
we see no customError involved.

Should I add customError logic to session is not authenticated logic?

Hmmm - good question. I think no, leave it as is for now. I may add custom error logic for this at a later stage