Commit 732de76
Handle 400 Bad Request for invalid source control URLs in registry lookup
When the registry server returns 400 Bad Request for the identity lookup
endpoint, throw `RegistryError.invalidSourceControlURL` to provide a
clear error message to the user.
This handles cases where malformed URLs (e.g., containing git credential
error messages) are sent to the registry. The server validates the URL
and returns 400, which the client now handles appropriately instead of
treating it as an unexpected error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5547e32 commit 732de76
File tree
2 files changed
+43
-1
lines changed- Sources/PackageRegistry
- Tests/PackageRegistryTests
2 files changed
+43
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1069 | 1074 | | |
1070 | 1075 | | |
1071 | 1076 | | |
1072 | 1077 | | |
1073 | 1078 | | |
1074 | 1079 | | |
1075 | 1080 | | |
1076 | | - | |
| 1081 | + | |
1077 | 1082 | | |
1078 | 1083 | | |
1079 | 1084 | | |
| |||
1503 | 1508 | | |
1504 | 1509 | | |
1505 | 1510 | | |
| 1511 | + | |
1506 | 1512 | | |
1507 | 1513 | | |
1508 | 1514 | | |
| |||
1580 | 1586 | | |
1581 | 1587 | | |
1582 | 1588 | | |
| 1589 | + | |
| 1590 | + | |
1583 | 1591 | | |
1584 | 1592 | | |
1585 | 1593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3148 | 3148 | | |
3149 | 3149 | | |
3150 | 3150 | | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
3151 | 3185 | | |
3152 | 3186 | | |
3153 | 3187 | | |
| |||
0 commit comments