bug fix: broken logging in TwingleApiCall
This commit is contained in:
parent
690e26410b
commit
6ff2322086
1 changed files with 3 additions and 2 deletions
|
@ -96,12 +96,13 @@ class TwingleApiCall {
|
|||
$values = $project->export();
|
||||
} catch (Exception $e) {
|
||||
// Log Exception
|
||||
$errorMessage = $e->getMessage();
|
||||
Civi::log()->error(
|
||||
"Could not export TwingleProject values: $e->getMessage()"
|
||||
"Could not export TwingleProject values: $errorMessage"
|
||||
);
|
||||
// Return result array with error description
|
||||
return $project->getResponse(
|
||||
"Could not export TwingleProject values: $e->getMessage()"
|
||||
"Could not export TwingleProject values: $errorMessage"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue