factores out error messages to a function and removes the password echo to console.
factores out error messages to a function and removes the password echo to console.

spark/particle-cli,kennethlimcp/particle-cli,kennethlimcp/particle-cli,spark/particle-cli,spark/particle-cli,kennethlimcp/particle-cli,kennethlimcp/particle-cli,spark/particle-cli,kennethlimcp/particle-cli,spark/particle-cli,spark/particle-cli,kennethlimcp/particle-cli