Skip to main content

emit_warning

Function emit_warning 

Source
pub fn emit_warning(
    name: &str,
    code: Option<&str>,
    message: &str,
    detail: Option<&str>,
)
Expand description

Port of internal/process/warning.js onWarning: render a warning to stderr as (node:PID) [CODE] Name: message, followed by an optional detail line and the one-time trace hint. Suppressed by --no-warnings, and deprecations additionally by --no-deprecation.