pass error to CLI if hooks break