Commit 5eda64f
committed
Use the statusMessage only if there's a failure to get the actual message.
When there's an error, the status message is generated by the http server,
and has a form like "400 Bad Request". If we fail to read the actual message
from the response.body, only then do we actually display the status message.
It's also displayed for unexpected error codes (not 400, 401, or 500), because
there's nothing from the command-server to display.
Signed-off-by: Eric Promislow <epromislow@suse.com>1 parent f1275b9 commit 5eda64f
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
0 commit comments