Skip to content

Commit 053764e

Browse files
committed
Get the error from the child process in the correct way
1 parent 01128b7 commit 053764e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ChildProcess/Adapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public function callFilesystem($function, $args, $errorResultCode = -1)
130130
{
131131
return $this->pool->rpc(Factory::rpc($function, $args))->then(function (Payload $payload) {
132132
return \React\Promise\resolve($payload->getPayload());
133-
}, function (Payload $payload) {
134-
return \React\Promise\reject(new Exception($payload->getPayload()['error']['error']['message']));
133+
}, function ($payload) {
134+
return \React\Promise\reject(new Exception($payload['error']['message']));
135135
});
136136
}
137137

0 commit comments

Comments
 (0)