You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use type name in Display impl for errors with no other message set
Otherwise, with nested errors, you can end up with unhelpful errors like
this (example printed by `anyhow`):
```
Error: failed to get metadata for "/temp/spoopadoop"
Caused by:
0: Dropbox API endpoint returned an error: There is nothing at the given path.
1: There is nothing at the given path.
2: There is nothing at the given path.
```
instead, with this change, you get:
```
Error: failed to get metadata for "/temp/spoopadoop"
Caused by:
0: Dropbox API endpoint returned an error: GetMetadataError: There is nothing at the given path.
1: GetMetadataError: There is nothing at the given path.
2: There is nothing at the given path.
```
which is less repetitive and gives a better indication of what actually went wrong.
InvalidPropertyGroupError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
916
916
InvalidPropertyGroupError::PropertyFieldTooLarge => f.write_str("One or more of the supplied property field values is too large."),
917
917
InvalidPropertyGroupError::DoesNotFitTemplate => f.write_str("One or more of the supplied property fields does not conform to the template specifications."),
@@ -1624,7 +1624,7 @@ impl ::std::fmt::Display for PropertiesError {
1624
1624
matchself{
1625
1625
PropertiesError::TemplateNotFound(inner) => write!(f,"Template does not exist for the given identifier: {:?}", inner),
1626
1626
PropertiesError::RestrictedContent => f.write_str("You do not have permission to modify this template."),
UpdatePropertiesError::UnsupportedFolder => f.write_str("This folder cannot be tagged. Tagging folders is not supported for team-owned templates."),
3976
3976
UpdatePropertiesError::PropertyFieldTooLarge => f.write_str("One or more of the supplied property field values is too large."),
3977
3977
UpdatePropertiesError::DoesNotFitTemplate => f.write_str("One or more of the supplied property fields does not conform to the template specifications."),
3978
3978
UpdatePropertiesError::DuplicatePropertyGroups => f.write_str("There are 2 or more property groups referring to the same templates in the input."),
0 commit comments