Thanks for your reply.

that's a trick thing to print all embedded errors.

After digging more,  Setenv function is related to the configuration '
AcceptEnv' of remote server's sshd,   if variable name is not accepted by '
AcceptEnv', it will throw out this unclear error 'Failed to set env'

在2021年11月16日星期二 UTC+8 下午6:13:30<Brian Candler> 写道:

> You resurrected a 7 year old thread for this! :-)
>
> The first thing I suggest you do is to print the value of "err" and you 
> may get back some information about why it failed.  (Same for everywhere 
> else that err != nil)
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/cc4206c7-4114-4966-a4f8-cf80b65d42cbn%40googlegroups.com.

Reply via email to