Improved error handling when calling Q::view