I trying to remove file, but on error i want to echo the error to active window, and hide it from the status window. befor i could use this code.

(path\to\file is set up right, the file is used by mirc, thats why i get the error)
Code:
alias test {
  .remove $qt(path\to\file))
  :error
  if (* /remove: unable to remove isin $error) { haltdef | echo -a File could not be deleted. }
}

But now when i trying to use it again it show in the status window:

* /remove: unable to remove 'path\to\file'

What do i miss here?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }