Demonstrates getting the last error message after a failed operation.