Tweaked future::then expression to emulate actual error message