errors
errors copied to clipboard
Error() method in withMessage is inappropriate
Current Error()
method will print the log message first then with the error rfc code, it may be better to print the error rfc code in front of log message.
func (w *withMessage) Error() string { return w.msg + ": " + w.cause.Error() }
In the case of BR
Error: backup meta file exists in file:////tmp/backup_test/backupmeta, there may be some backup files in the path already, please specify a correct backup directory!: [BR:Common:ErrInvalidArgument]invalid argument
Place [BR:Common:ErrInvalidArgument]invalid argument
fieild in front of log message will be better.