**Source URL:** https://limited.veevavault.dev/medical/omnichannel/api-reference/25.3/methods/ondialerror.md

# onDialError()

Accepts a message string that users see in the Medinquiry UI when a call fails to connect.

## Parameters {#parameters}

<FieldTable>
| Name | Type | Description |
| --- | --- | --- |
| `message` | string | The error message to display in the MedInquiry UI. |
</FieldTable>

## Example {#example}

<CodeExample title="">
```
import { omniconnectEvent } from "./vault-medical-omniconnect-25.1.2-release12649.js";


// The call failed to connect
function dialError() {
    omniconnectEvent.onDialError()
}

```
</CodeExample>

---

**Previous:** [dial()](/medical/omnichannel/api-reference/25.3/methods/dial)  
**Next:** [onEnded()](/medical/omnichannel/api-reference/25.3/methods/onended)