mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 21:00:39 +08:00
[Legacy] Replace die with exception
This commit is contained in:
parent
844b6ecbfc
commit
b57242108d
1 changed files with 2 additions and 2 deletions
|
@ -542,14 +542,14 @@ class PackageManager
|
||||||
if ($upgrade_zip_type != "module" && $upgrade_zip_type != "theme" && $upgrade_zip_type != "langpack") {
|
if ($upgrade_zip_type != "module" && $upgrade_zip_type != "theme" && $upgrade_zip_type != "langpack") {
|
||||||
$this->unlinkTempFiles();
|
$this->unlinkTempFiles();
|
||||||
if ($display_messages) {
|
if ($display_messages) {
|
||||||
die($mod_strings['ERR_UW_NOT_ACCEPTIBLE_TYPE']);
|
throw new RuntimeException($mod_strings['ERR_UW_NOT_ACCEPTIBLE_TYPE']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif ($view == "default") {
|
} elseif ($view == "default") {
|
||||||
if ($upgrade_zip_type != "patch") {
|
if ($upgrade_zip_type != "patch") {
|
||||||
$this->unlinkTempFiles();
|
$this->unlinkTempFiles();
|
||||||
if ($display_messages) {
|
if ($display_messages) {
|
||||||
die($mod_strings['ERR_UW_ONLY_PATCHES']);
|
throw new RuntimeException($mod_strings['ERR_UW_ONLY_PATCHES']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue