Changed fail to catch for promise error handling
Merge pull request #2 from WaHe/develop

Changed fail to catch for promise error handling