Closed (fixed)
Project:
CiviCRM Error Handler
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2008 at 00:03 UTC
Updated:
14 Jul 2009 at 14:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
xurizaemonComment #2
xurizaemonNaughty comment line sneaked in!
Please have a look at this and give feedback; I'd like a chance to integrate an output switch and clean it up a bit before we have this accepted.
Cheers
Comment #3
xurizaemonComment #4
dalinThis comment is to make public my invitation to xurizaemon to be my comaintainer of this module. This is to comply with all the formal requirements of applying for a CVS account under such circumstances.
Comment #5
dalinWierd, how come I can't just set this to "Ready to be commited"?
Comment #6
xurizaemonImproved patch which makes it possible to choose how errors are delivered from CiviCRM - email, watchdog, or both
Comment #7
dalinI wrote this module before coder.module became popular, and before I understood the importance of code style conformance, so take this comment with a grain of salt since civicrm_error.module does not pass the Drupal coding standards. But we should probably endeavor to not make things any worse.
There are several coding syntax issues with your patch:
* Comments without a trailing period.
* No space between trailing colon and the previous character.
* Missing "break;" in your final case.
* nested arrays should look like (note the indenting):
Comment #8
dalincnw
Comment #9
xurizaemonThis patch cleans up civicrm_error module to pass coder.module without any warnings.
I didn't add any code cleanups in the original patch, as I figured it would be cleaner to supply those fixes as part of a separate issue rather than bundling them with this feature change.
The missing break in the second switch case is intentional; I've added an inline comment to clarify that.
Let me know if I can improve anything further?
Thx
Comment #10
dalinWow, if we want to do a full audit of the code format that's great too. We probably shouldn't try to put anything else in this patch though ;-)
A few things I noticed. It looks like your last patch does not include the work in your previous patches. Not sure how you managed that. Perhaps with svn diff and you had already committed your previous change to svn? Try
cvs diff -ur BASEto get all your changes diffed against the version that you checked out of CVS.Also you shouldn't use {} on civicrm tables since if they get prefixed things will break badly.
Other than that it looks pretty good.
Comment #11
xurizaemonThis is a diff against the CVS version (rather than against my working copy - sorry bout that!)
Removed {} on civicrm tables
Thanks Dalin
Comment #12
dalin