File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ func main() {
115115 err = putiosync .Sync (ctx , config )
116116 var configError * putiosync.ConfigError
117117 if errors .As (err , & configError ) {
118- fmt .Println (configError .Error () )
118+ fmt .Println (configError .Reason )
119119 os .Exit (exitCodeConfigError )
120120 return
121121 }
Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ import (
55)
66
77type ConfigError struct {
8- reason string
8+ Reason string
99}
1010
1111func newConfigError (reason string ) * ConfigError {
12- return & ConfigError {reason : reason }
12+ return & ConfigError {Reason : reason }
1313}
1414
1515func (e * ConfigError ) Error () string {
16- return "error in config: " + e .reason
16+ return "error in config: " + e .Reason
1717}
1818
1919type Config struct {
You can’t perform that action at this time.
0 commit comments