EnoError » message

message → string

Contains both the error text as well as the snippet. This is also what you get in the console when you don't catch the error.

javascripttry {
  // ...
} catch(err) {
  if(err instanceof EnoError) {
    err.message;  // returns "In line 4 'a' is copied into itself.\n\n   Line | Content\n ..."
  }
}

Return value

Both the error text as well as the snippet.