Resolved issue #29
Improved error reporting
Backported https://github.com/Atmosphere/atmosphere/issues/1701