Created
June 5, 2015 01:51
-
-
Save freshjones/bfc60702fa09db755b7e to your computer and use it in GitHub Desktop.
try catch for entity wrappers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
} | |
catch(EntityMetadataWrapperException $exc) | |
{ | |
watchdog( | |
'MODULE_NAME', | |
'See ' . __FUNCTION__ . '() <pre>' . $exc->getTraceAsString() . '</pre>', | |
NULL, WATCHDOG_ERROR | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment