mirror of https://github.com/databricks/cli.git
Add hint to delete sync snapshot if parsing fails (#853)
## Changes Example error: ``` Error: error parsing existing sync state. Please delete your existing sync snapshot file (.databricks/sync-snapshots/f3c00bc127903f9b.json) and retry: invalid sync state representation. Remote file footxt is missing the corresponding local file ``` ## Tests Manually
This commit is contained in:
parent
b4086e4f1d
commit
043e54950d
|
@ -168,7 +168,7 @@ func (s *Snapshot) diff(ctx context.Context, all []fileset.File) (diff, error) {
|
|||
|
||||
currentState := s.SnapshotState
|
||||
if err := currentState.validate(); err != nil {
|
||||
return diff{}, fmt.Errorf("error parsing existing sync state: %w", err)
|
||||
return diff{}, fmt.Errorf("error parsing existing sync state. Please delete your existing sync snapshot file (%s) and retry: %w", s.SnapshotPath, err)
|
||||
}
|
||||
|
||||
// Compute diff to apply to get from current state to new target state.
|
||||
|
|
Loading…
Reference in New Issue