Skip to main content

report_error

Function report_error 

Source
pub fn report_error(summary: &str, context: &str, hints: &[Hint])
Expand description

Print a uniform error block.

Layout:

X error - <summary>

    <context line 1>
    <context line 2>

  > try   <hint body>
  > docs  <hint body>