Commit 6359421
authored
fix(scope): improve error message when Source object is missing from local scope (#10294)
When a Version object exists locally but a referenced Source blob is
missing (rare scope corruption, e.g. interrupted import), the error gave
no hint on how to recover. `bit import --objects` alone won't fix it
because the remote short-circuits via
`returnNothingIfGivenVersionExists` when the Version hash already exists
locally.
The error now tells the user to run `bit import <id>@<version> --objects
--all-history`, which bypasses the delta optimization and re-fetches all
referenced objects.1 parent 002af60 commit 6359421
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
| 1078 | + | |
1078 | 1079 | | |
1079 | 1080 | | |
1080 | 1081 | | |
1081 | 1082 | | |
1082 | | - | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1083 | 1089 | | |
1084 | 1090 | | |
1085 | 1091 | | |
| |||
0 commit comments