tried to improve exception handling and error messages
Merge branch 'develop' of https://github.com/imeji-community/imeji into develop