Error reporting for diagnostics

This adds some error output.
@pwnetrationguru as per @Lordnibbler, could you please remove the version bump?