mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
update response message format
This commit is contained in:
parent
e43697ec0c
commit
55da150a90
1 changed files with 3 additions and 7 deletions
|
|
@ -194,12 +194,7 @@ class Content
|
||||||
|
|
||||||
$this->page->title->setValue(
|
$this->page->title->setValue(
|
||||||
$address->getHost(),
|
$address->getHost(),
|
||||||
$response->getMeta() ? $response->getMeta() : sprintf(
|
$response->getMeta() ? $response->getMeta() : 'response expected'
|
||||||
'response expected (code %d)',
|
|
||||||
intval(
|
|
||||||
$response->getCode()
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->page->response->show(
|
$this->page->response->show(
|
||||||
|
|
@ -283,7 +278,8 @@ class Content
|
||||||
$this->page->title->setValue(
|
$this->page->title->setValue(
|
||||||
'Failure',
|
'Failure',
|
||||||
sprintf(
|
sprintf(
|
||||||
'could not open resource (code %d)',
|
'%s (code %d)',
|
||||||
|
$response->getMeta() ? $response->getMeta() : 'could not open resource',
|
||||||
intval(
|
intval(
|
||||||
$response->getCode()
|
$response->getCode()
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue