> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-nodejs/functions/sdkgetlasterror.md).

# sdkGetLastError()

Returns the most recent error string reported by the SDK.

```javascript
sdkGetLastError()
```

***

## Return Value

* <mark style="color:green;">string</mark> : The most recent error string

## Example

```javascript
// Example

console.log(sdk.sdkGetLastError());

```
