Closed (fixed)
Project:
Search API Pages
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2012 at 18:46 UTC
Updated:
9 Jul 2012 at 13:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
drunken monkeySee #1253320: Improve error handling, this is definitely planned, and rather important, for the Search API. I agree that we don't handle this very well at the moment.
In principle, we need clear guidelines on where exceptions should be caught, but I agree that they shouldn't reach the user.
And I guess, catching them late before they'd be displayed makes sense.
Attached is a patch for this module, but the effort goes of course across most Search API-related modules. Please tell me if you think this is the right approach.
In any case, thanks very much for getting this rolling again!
Comment #2
cpliakas commentedThomas,
Patch looks great for this specific use case.
Agreed. Bigger than Search API, it would be great if Drupal in general had guidelines to follow. But I digress.
Thanks,
Chris
Comment #3
drunken monkeyGreat, committed.
I agree. It's always annoying if there aren't clear standards and modules start doing things their own way (mine in this case wasn't very good – but in general I think exceptions are a pretty good way of error handling, which Drupal should maybe support more).
Comment #4
drunken monkey