add res parsing to throw error when pretty print styling is present
fix toffee test, `should handle errors`