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

# onDialError()

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

## Parameters

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

## Example

<CodeExample title="">
```javascript
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/26.1/methods/dial)  
**Next:** [onEnded()](/medical/omnichannel/api-reference/26.1/methods/onended)