First version that draw diagram in the error messages.