Scrip help with error message

To all,

I have a scrip that evaluates a CF to see if it has been modified. 

If NOT, I wanted to send out an error message for RT to display in the
"Modify Ticket" screen. This is the action code:

$RT::Logger->error(“Resolution Type NOT SET!”);

return 1;

I get nothing. Does anyone have some code I can borrow for this? Thanks.