Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF] Convert CRM_Core_Error::fatal to CRM_Core_Error::statusBounce i… #15863

Merged
merged 1 commit into from
Nov 20, 2019

Conversation

seamuslee001
Copy link
Contributor

…n Extension folder

Overview

This converts from deprecated function CRM_Core_Error::fatal to using CRM_Core_Error::statusBounce

Before

Deprecated function used in the Extensions subsystem

After

Non depreacted function used

ping @yashodha @eileenmcnaughton

@civibot
Copy link

civibot bot commented Nov 15, 2019

(Standard links)

@civibot civibot bot added the master label Nov 15, 2019
@@ -105,7 +105,7 @@ public function download($key, $downloadUrl) {
$destDir = $this->containerDir . DIRECTORY_SEPARATOR . $key;

if (!$downloadUrl) {
CRM_Core_Error::fatal(ts('Cannot install this extension - downloadUrl is not set!'));
CRM_Core_Error::statusBounce(ts('Cannot install this extension - downloadUrl is not set!'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this the form - otherwise an exception makes sense

@eileenmcnaughton
Copy link
Contributor

@seamuslee001 were you going to update this to throw exceptions?

@seamuslee001
Copy link
Contributor Author

done @eileenmcnaughton

@@ -105,7 +105,7 @@ public function download($key, $downloadUrl) {
$destDir = $this->containerDir . DIRECTORY_SEPARATOR . $key;

if (!$downloadUrl) {
CRM_Core_Error::fatal(ts('Cannot install this extension - downloadUrl is not set!'));
throw new CRM_Extension_Exception(ts('Cannot install this extension - downloadUrl is not set!'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh flash

@seamuslee001 seamuslee001 merged commit e5a61c5 into civicrm:master Nov 20, 2019
@seamuslee001 seamuslee001 deleted the status_bounce_extension branch November 20, 2019 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants