Improved debug info in error modal
Fixed add contact from attachment

Closes #492