Closed gsingh93 closed 4 months ago
You are welcome to add an entry to the CHANGELOG.md as well
Its more of a client design choice. Not just one command change like you suggested.
A) Should all commands give a textual feed back if it fails ? or B) Should it not give out any output and only give output when successful.
I tend today to prefer B, so I am making the client act unified towards that way.
@iceman1001 in that case, I've updated the PR to only change the return value, which will make the command produce no output.
I do prefer option A though. If you prefer option B, is there ever any reason to use "FAILED" or "ERR" log messages? I assume you have some criteria for determining when it's appropriate to use them?
I am not saying that the pm3 client is a marvelous wonder of unified thought through design concepts.
@iceman1001 no worries 😄 let me know if the current version of the PR looks good.
I was confused why
hf mf dump
wasn't showing any errors but the dump file was all zeros:For some reason
PM3_SUCCESS
was being returned from this error path, and the log message was using theDEBUG
log level. After this PR, it's more clear an error occured: