Skip to main content

fix_failure

Function fix_failure 

Source
pub fn fix_failure(
    arguments: &[OsString],
    code: EngineFailureCode,
    message: &str,
) -> PassResult
Expand description

What: A fix result made of one engine failure of the fix, as the installed wrapper reports a cycle, a pass limit or an installation failure: earlier events are dropped. &[std::ffi::OsString] borrows the command’s arguments. Why: The person sees why nothing was installed, and nothing else.

In TS you’d write (pseudocode):

const fixFailure = (code, message) => ({ events: [engineFailure(code, message, 'direct-fix')], exitCode: 2 });