Bug 833877: Add a way to report exceptions in promises. r=Mossop