Skip to content

Commit 96e0a06

Browse files
committed
Format exception
1 parent be9b821 commit 96e0a06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/LeanCloud/CloudException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function __construct($message, $code = 1, $status = 400,
4949
}
5050

5151
public function __toString() {
52-
$req = $this->method ? "{$this->method} {$this->url} =>": "";
53-
return __CLASS__ . ": ${req} [{$this->code}] {$this->message}\n";
52+
$req = $this->method ? ": {$this->method} {$this->url}": "";
53+
return __CLASS__ . ": [{$this->code}] {$this->message}{$req}\n";
5454
}
5555
}
5656

src/LeanCloud/Engine/FunctionError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public function __construct($message, $code = 1, $status = 400) {
1717
}
1818

1919
public function __toString() {
20-
return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
20+
return __CLASS__ . ": [{$this->code}] {$this->message}\n";
2121
}
2222
}

0 commit comments

Comments
 (0)