enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
202 stars 34 forks source link

No error handler available for webapps #7104

Closed sigdestad closed 5 years ago

sigdestad commented 5 years ago

We need to support error handling for webapps. Preferably on src/resources/main/error/error.js

Alternatively, we could support exports.handleError etc directly in webapp.js, but this would complicate reuse of code between webapps and sites.

NB! Needs to support backward compatibility so site handler will also look for error.js within site/ folder. But this should only occur after trying resources/error/error.js first.

GlennRicaud commented 5 years ago

Will be done in a generic way in https://github.com/enonic/xp/issues/7404