Fulfilled promise with error code 1

Resolves #382