CUPS.LastErrorMessage
---------------------

Return the last status-message.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CUPS](component_CUPS.md) | [2.5](newinversion25.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "CUPS.LastErrorMessage" ) ### Parameters

none

### Result

Error message text.

### Description

Return the last status-message.  
### Examples

This cancels a job and queries last error code (will be 1030) and error message (something like "job 123 doesn't exist"):

 $result = MBS ( "[CUPS.CancelJob](CUPSCancelJob.md)"; "test"; 123 )  
$message = MBS ( "CUPS.LastErrorMessage" )  
$errorCode = MBS ( "[CUPS.LastErrorCode](CUPSLastErrorCode.md)" )  
### See also

- [CUPS.CancelJob](CUPSCancelJob.md)
- [CUPS.LastErrorCode](CUPSLastErrorCode.md)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[CUPS.LastErrorCode](CUPSLastErrorCode.md) - [CUPS.PrintData](CUPSPrintData.md)

[HTML Version](CUPSLastErrorMessage.shtml)