Future/accept -> Promise/fulfill

Merge branch 'master'
Adding method to parse 'error' object