Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 21:03 UTC
Updated:
26 Apr 2011 at 22:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
ksenzeeHere's a quick patch that simply catches the exception. Not sure if anything more is needed.
Comment #2
dawehnerHere is a slighly improved version
* catch the errors with a single try catch
* remove the try catch from preview, it's not needed anymore
* throw the error message as drupal_set_message in the live preview, so developers see them.
Comment #3
dawehnerCommited this version.
Comment #4
dawehnerOkay commited this patch.
There is one issue: you don't see the exception when you initially load the view, because the exception is part of the executing of the view which happens per default on pre_render, which is too late for $messages.