Skip to content

ApplyError

Raised when a patch does not apply cleanly.

Patch.apply throws ApplyError when the patch cannot be applied to the base content it is given.

Example

let p = patch.diff "alpha\n" "beta\n"

try
  p.apply "gamma\n"
catch patch.ApplyError: err
  echo "apply failed: $err"

Inherits from: std.RuntimeError