Added an method on Promisses to fulfill them with an error