caml_raise_with_string (*caml_named_value ("Augeas.Error"), msg);
}
+static void
+raise_init_error (const char *msg)
+{
+ caml_raise_with_string (*caml_named_value ("Augeas.Error"), msg);
+}
+
/* Map OCaml flags to C flags. */
static int flag_map[] = {
/* AugSaveBackup */ AUG_SAVE_BACKUP,
t = aug_init (root, loadpath, flags);
if (t == NULL)
- raise_error ("Augeas.create");
+ raise_init_error ("Augeas.create");
CAMLreturn (Val_augeas_t (t));
}