commands: adapt to tagtree TagError enum
TagError is now an enum; use its Display instead of the removed .0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2 files changed,
+2 insertions,
-2 deletions
| 108 |
108 |
|
fn validate_bookmark_tags(tags: &[String]) -> Result<(), ApiError> {
|
| 109 |
109 |
|
for tag in tags {
|
| 110 |
110 |
|
tagtree::validate_with(tag, &BB_TAG_CONFIG)
|
| 111 |
|
- |
.map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e.0)))?;
|
|
111 |
+ |
.map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e)))?;
|
| 112 |
112 |
|
}
|
| 113 |
113 |
|
Ok(())
|
| 114 |
114 |
|
}
|
| 458 |
458 |
|
) -> Result<(), ApiError> {
|
| 459 |
459 |
|
for tag in &tags {
|
| 460 |
460 |
|
tagtree::validate_with(tag, &BB_TAG_CONFIG)
|
| 461 |
|
- |
.map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e.0)))?;
|
|
461 |
+ |
.map_err(|e| ApiError::bad_request(format!("invalid tag: {}", e)))?;
|
| 462 |
462 |
|
}
|
| 463 |
463 |
|
|
| 464 |
464 |
|
let db = state.orchestrator.database();
|