CURL.ErrorMessage
-----------------

Returns the last CURL error message.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.ErrorMessage"; curl ) 

**MBS**( **"CURL.ErrorMessage";** /\* Returns the last CURL error message. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |

### Result

The last CURL error message.

### Description

Returns the last CURL error message.  
### Examples

Query Error Message:

 Set Variable \[$ErrorMessage ; Value:MBS ( "CURL.ErrorMessage"; $curl )\]  
Show Custom Dialog \["Transfer error"; $ErrorMessage \]  
### See also

- [CURL.IsRunning](CURLIsRunning.md)
- [FM.ErrorMessage](FMErrorMessage.md)

### Example Databases

- [CURL/WebServices/WeatherBit.io test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/WeatherBit.io%20test.shtml#1ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 8th December 2016

  
[CURL.ErrorCode](CURLErrorCode.md) - [CURL.Features](CURLFeatures.md)

[HTML Version](CURLErrorMessage.shtml)