Fix passing of error info to report