bobmcwhirter/awestruct — Issue #43: Use desktop notifications for errors in development
Author: mojavelinux
Created: 2011-11-01 08:01:22+00:00
State: open

Integrate with something like libnotify to provide growl-like notifications when a rendering error occurs to give the developer some clue that something went wrong during generation.

This feature is especially useful for designers, who may not be as accustomed to looking at the console for errors...and get easily frustrated when they don't see their stylesheet change, for instance, taking effect.

Here's an example that would be put in the rescue clause of the renderable impls:

Libnotify.show(:summary => "Error rendering #{self.relative_source_path}", :body => e.to_s, :timeout => 1.5)

The exception catching code should be at a higher level so a change like this only has to be done once.