alias example { sockwrite fop example return :error echo -ac info $error -- <your message here> reseterror }
if ($sock(ophours)) { ; display custom error and return }
sockopen ophours ... ... return :error var %err = * /sockopen: 'ophours' socket in use (line 96, xxHour-Panel) if ($error == %err) { ; Display custom error reseterror }