app/helpers/default_path_helper.rb
# Returns '#' if the default workbench can't be found and report error
Returns '#' if the default workbench can't be found and report error
Returns ' # ' if the default workbench can ' t be found and report error
def with_default_workbench
    yield
  rescue NoDefaultWorkbenchError => e
    if raise_error_without_default_workbench?
      raise e
    else
      Chouette::Safe.capture "Can't create default path", e
      '#'
    end
  end
def with_default_workbench yield rescue NoDefaultWorkbenchError => e if raise_error_without_default_workbench? raise e else Chouette :: Safe . capture "Can't create default path" , e '#' end end
Returns '#' if the default workbench can't be found and report error
Returns ' # ' if the default workbench can ' t be found and report error