Hi there,
I might just miss it out but is it possible to log an error of a command when scripting?
for example i just wrote an FTP upload script for my configs and would love to get the info of “/tool fetch [..]” why its not doing shit (in my case when running the command in the cli: status: failed failure: connection failed) which would be awesome to know so i don’t need to look into that script further but can easily check the connection (a closed port in my case ^^)
Am i just missing out here something or is that simply not possible?
wherever I’m triggering that command no LOG entry is generated at all on error.
If triggered in the cli the error is displayed directly there (no route, login error, connection refused, etc)
but if i run that line in a script no error will be displayed anywhere, even tough i use the
do{
...
} on-error={
:log error "my error!"
}
syntax.
So I basically would like to catch the error I’m getting there and the system does realise that there is an error but i cannot address or log it …
so here is no way of fetching an error thrown by a subroutine for advanced error handling / sending emails pushing notifications. thats a pity, i guess i should add that to the feature request list.