HomePhorge

Refactoring how the catalog creation handles errors. Previously, if there…
7d35ae8fed98Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Refactoring how the catalog creation handles errors. Previously, if there were an error creating a resource, the error would propagate leaving any previously created resources still in memory.

Now, resources are removed by default when an error
happens during instantiation, and the error propagates
to the caller so that they can log or whatever.

This also allows the Settings class to correctly and
separately handle the cases where we can't create the
catalog (which should never happen in normal usage but
was happening because of this error -- later catalogs
couldn't be created because earlier catalogs left
resources lying around) from those where we can't
apply the catalog.

Details

Provenance
Luke Kanies <luke@madstop.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1b3c85ba2c32: Removing extra debugging
Branches
Unknown
Tags
Unknown

Event Timeline