Get Test Case Error / Test Step Error

I want to get error from failed test case, how to do that? like the expected result are Y but actual result are X.

Update:

I want to get the error message, so i can send it to slack channel as report what test case has failed and why it fail.

example error from log katalon:
Unable to verify match between actual text ‘Pengembalian Dana’ and expected text ‘Pengembalian Dana 0’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Actual text ‘Pengembalian Dana’ and expected text ‘Pengembalian Dana 0’ are not matched

I want to get this part:
Actual text ‘Pengembalian Dana’ and expected text ‘Pengembalian Dana 0’ are not matched

you can use an assert statement:

is that just check the expected compare to actual?

I mean i want to get the error message for sending it to slack channel, like this:

Test case …
Failed
Error : “Expected X buat found Y”

i want to send the error message to slack channel