Commit ccfda8e
committed
Restore operation-specific messages in ServerAuthOperationError
The consolidation commit replaced individual error classes with
ServerAuthOperationError, which introduced a generic message getter:
'Server authentication operation ${operation} failed.'
Cloud HTTP handlers pass error.message into 500 response bodies via
failEnvironmentCloudInternalError, so this caused user-facing messages
to regress from specific strings like 'Could not verify the linked
cloud account.' to the generic template.
Restore the original per-operation messages through a lookup table
keyed by the operation discriminant.1 parent 87fac8a commit ccfda8e
1 file changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
93 | 115 | | |
94 | 116 | | |
95 | 117 | | |
| |||
98 | 120 | | |
99 | 121 | | |
100 | 122 | | |
101 | | - | |
| 123 | + | |
102 | 124 | | |
103 | 125 | | |
104 | 126 | | |
| |||
0 commit comments