> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fairground.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# get_error_message

> Python SDK reference for get_error_message.

Get human-readable error message for a contract error signature.

<ParamField path="error_signature" type="str" required>
  4-byte error signature (e.g., "0xb0cfa447")
</ParamField>

<ResponseField name="returns" type="str" required>
  Human-readable error message, or the signature if not found
</ResponseField>

```python theme={null}
def get_error_message(error_signature: str) -> str:
    if not error_signature.startswith('0x'):
        error_signature = f'0x{error_signature}'
    error_signature = error_signature.lower()
    return CONTRACT_ERROR_MESSAGES.get(error_signature, error_signature)
```
