-
Problem with log message when using trap
closeHandle:{[h] .util.logMsg["Closing handle"]; update handle:0Ni from `.cfg.handles where handle=h; @[hclose; h;.util.logError["Error closing handle: ",(string h)]]; }; logMsg:{[x] show string[.z.Z], "-" , x; }; logError:{ logMsg["ERROR: ",x]; :`error; };
For some reason the trap is printing error closing handle when infact its closing it. I only want it to print when it might have issue closing it. Am i missing something?
Log in to reply.