mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-07 13:31:31 -07:00
Fixed no AWS class bug
-> Corrected the file name which caused the AWS class file to not load. -> Standardized GetError()
This commit is contained in:
parent
563e984fdd
commit
26d1b68f84
1 changed files with 2 additions and 5 deletions
|
@ -10,7 +10,7 @@ class SpacesConnect {
|
|||
function __construct($access_key, $secret_key, $spaceName = "", $region = "nyc3", $host = "digitaloceanspaces.com") {
|
||||
|
||||
//Only pulled if an AWS class doesn't already exist.
|
||||
$non_composer_aws_lib = dirname(__FILE__)."/aws/autoloader.phpx";
|
||||
$non_composer_aws_lib = dirname(__FILE__)."/aws/autoloader.php";
|
||||
|
||||
if(!empty($spaceName)) {
|
||||
$endpoint = "https://".$spaceName.".".$region.".".$host;
|
||||
|
@ -499,9 +499,6 @@ class SpacesConnect {
|
|||
throw new SpacesAPIException(@json_encode($error));
|
||||
}
|
||||
|
||||
function GetError($e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -512,7 +509,7 @@ class SpacesAPIException extends \Exception {
|
|||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
public function getError() {
|
||||
public function GetError() {
|
||||
$error = @json_decode($this->getMessage(), true);
|
||||
return $error["error"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue