
@function serr-init($options: (), $args...){
  $defaults: (
    prefix: null,
    throw: false,
    throw_type: 'error',
    log: false
  );

  $-serr-default-options: () !default !global;
  $-serr-default-options: -serr-multi-map-merge(
    $defaults,
    $-serr-default-options,
    $options,
    $args
  ) !global;

  @return $-serr-default-options;
}


@function serr-init($options: (), $args...){
  $defaults: (
    prefix: null,
    throw: true,
    throw_type: 'error',
    log: false
  );

  $-serr-default-options: () !default !global;
  $-serr-default-options: -serr-multi-map-merge(
    $defaults,
    $-serr-default-options,
    $options,
    $args
  ) !global;

  @return $-serr-default-options;
}

Make serr-throw throwing errors by default
Make serr-throw throwing errors by default
