Skip to content

Commit fb125b8

Browse files
committed
Minor readme fixes
1 parent e8f3bae commit fb125b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bref/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -425,17 +425,17 @@ use Bref\Context\Context;
425425
use Bref\Event\Handler;
426426
use Runtime\Bref\Timeout\LambdaTimeout;
427427
428-
class Handler implements Handler
428+
class MySlowHandler implements Handler
429429
{
430430
public function handle($event, Context $context)
431431
{
432432
try {
433433
// your code here
434434
// ...
435435
} catch (LambdaTimeoutException $e) {
436-
echo 'Oops, sorry. We spent too much time on this.';
436+
return 'Oops, sorry. We spent too much time on this.';
437437
} catch (\Throwable $e) {
438-
echo 'Some other unexpected error happened.';
438+
return 'Some other unexpected error happened.';
439439
}
440440
}
441441
}

0 commit comments

Comments
 (0)