Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

CUPS.LastErrorMessage

Return the last status-message.

Component Version macOS Windows Linux Server iOS SDK
CUPS 2.5 ✅ 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"; "test"; 123 )
$message = MBS( "CUPS.LastErrorMessage" )
$errorCode = MBS( "CUPS.LastErrorCode" )

See also

This function is free to use.

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


CUPS.LastErrorCode - CUPS.PrintData

💬 Ask a question or report a problem