1
0
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:
2017-03-25 06:14:52 -04:00
parent 3c56e60a85
commit 896bd55327
4 changed files with 12 additions and 8 deletions

View File

@ -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)
}