Decorate existing Error object from react-tools transform

This patch preserves errors thrown from transformation and decorates them
instead of turning them into a simple string.