mirror of
https://github.com/aclindsa/ofxgo.git
synced 2025-07-01 19:58:37 -04:00
Add status code meanings to status code error messages
This commit is contained in:
@ -52,7 +52,8 @@ func bankTransactions() {
|
||||
}
|
||||
|
||||
if response.Signon.Status.Code != 0 {
|
||||
fmt.Printf("Nonzero signon status with message: %s\n", response.Signon.Status.Message)
|
||||
meaning, _ := response.Signon.Status.CodeMeaning()
|
||||
fmt.Printf("Nonzero signon status (%d: %s) with message: %s\n", response.Signon.Status.Code, meaning, response.Signon.Status.Message)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user