improve error message
This commit is contained in:
parent
6085239f69
commit
498dc9523f
2 changed files with 8 additions and 4 deletions
|
@ -96,9 +96,7 @@ function civicrm_api3_twingle_project_Create(array $params): array {
|
|||
$project = new TwingleProject($params, $id);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
return civicrm_api3_create_error(
|
||||
'Could not instantiate TwingleProject: ' . $e->getMessage()
|
||||
);
|
||||
return civicrm_api3_create_error($e->getMessage(), $params);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue