mkremins / tailspin

MIT License
2 stars 0 forks source link

Catch and manually handle circular dependency exceptions #1

Closed mkremins closed 10 years ago

mkremins commented 10 years ago

dep-graph.core/depend throws an exception when a circular dependency would be created, and currently we're making no attempt to intercept the thrown exception – when a user types in something that would create a circular dependency between two or more cells, everything just stops working.

Instead, we should catch circular dependency exceptions and update the affected cells to contain errors. This prevents the app from crashing and gives us a way to inform the user more directly of what exactly went wrong.