> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/runtime/pcall.md).

# Pcall

Protected call. Returns the status first, then the function results.

## **Syntax**

```lua
refresh.Runtime.pcall(fn, ...) -> Boolean, ...
```

## Usage Example

```lua
local ok, err = refresh.Runtime.pcall(function()
    error("boom")
end)
print(ok, err)
```
