# Unable to capture error

**URL:** <https://forum.serverless.com/t/unable-to-capture-error/12484>\
**Category:** Serverless Framework\
**Created:** [September 6, 2020, 4:31am UTC](https://forum.serverless.com/t/unable-to-capture-error/12484 "2020-09-06T04:31:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaje94](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/kaje94/32/4539_2.png) [@kaje94](https://forum.serverless.com/u/kaje94)\
**Post date:** [September 6, 2020, 4:31am UTC](https://forum.serverless.com/t/unable-to-capture-error/12484/1 "2020-09-06T04:31:17Z")

</div>

Hi Guys,  
Im trying to use `context.serverlessSdk.captureError(error)` for capturing errors but context doesn’t contain a property called serverlessSdk And therefore getting an error “TypeError: Cannot read property ‘captureError’ of undefined”.

[https://www.serverless.com/framework/docs/dashboard/sdk/nodejs/#captureerror](https://www.serverless.com/framework/docs/dashboard/sdk/nodejs/#captureerror)

Can someone help me out please
