Improve CLI error handling for setmtu command

This commit is contained in:
Joseph Henry 2024-03-05 00:13:07 -08:00
parent 9724e04e6e
commit bbe97dd080
No known key found for this signature in database
GPG key ID: C45B33FF5EBC9344
2 changed files with 13 additions and 4 deletions

View file

@ -591,7 +591,7 @@ static int cli(int argc,char **argv)
printf("200 setmtu OK" ZT_EOL_S);
return 0;
} else {
printf("no link match found, new MTU was not applied" ZT_EOL_S);
printf("%d Failed to set MTU: %s" ZT_EOL_S, scode, responseBody.c_str());
return 1;
}
return 0;