There should be one way to report errors, since it's async function it should be passed as argument.