Check if this error is fixable by the user (not a bug).
(&self)
| 543 | |
| 544 | /// Check if this error is fixable by the user (not a bug). |
| 545 | pub fn is_user_fixable(&self) -> bool { |
| 546 | matches!( |
| 547 | self, |
| 548 | Self::RepositoryNotFound { .. } |
| 549 | | Self::RepositoryExists { .. } |
| 550 | | Self::ViewNotFound { .. } |
| 551 | | Self::ViewAlreadyExists { .. } |
| 552 | | Self::CannotDeleteCurrentView { .. } |
| 553 | | Self::FileNotFound { .. } |
| 554 | | Self::FileNotTracked { .. } |
| 555 | | Self::FileAlreadyTracked { .. } |
| 556 | | Self::PathOutsideRepository { .. } |
| 557 | | Self::PathIgnored { .. } |
| 558 | | Self::NothingToRecord |
| 559 | | Self::ChangeNotFound { .. } |
| 560 | | Self::AmbiguousHash { .. } |
| 561 | | Self::MissingDependency { .. } |
| 562 | | Self::Conflict { .. } |
| 563 | | Self::ConflictMarkers { .. } |
| 564 | | Self::FileTooLarge { .. } |
| 565 | | Self::IdentityNotFound(_) |
| 566 | | Self::IdentityAlreadyExists(_) |
| 567 | | Self::RemoteNotFound { .. } |
| 568 | | Self::AuthenticationFailed { .. } |
| 569 | | Self::InvalidArgument { .. } |
| 570 | | Self::RequiresForce { .. } |
| 571 | | Self::ManagedAgentIncomplete { .. } |
| 572 | | Self::StaleBaseline { .. } |
| 573 | | Self::InvalidRepository { .. } |
| 574 | | Self::InvalidPath { .. } |
| 575 | ) |
| 576 | } |
| 577 | |
| 578 | /// Check if this is an internal error (likely a bug). |
| 579 | pub fn is_internal(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected