max / audiofiles
1 file changed,
+1 insertion,
-1 deletion
| @@ -18,7 +18,7 @@ const TAG_CONFIG: tagtree::TagConfig = tagtree::TagConfig { | |||
| 18 | 18 | /// - No spaces, no consecutive dots, no leading/trailing dots | |
| 19 | 19 | /// - Max 5 levels (4 dots), max 100 chars | |
| 20 | 20 | pub fn validate_tag(tag: &str) -> Result<()> { | |
| 21 | - | tagtree::validate_with(tag, &TAG_CONFIG).map_err(|e| CoreError::TagInvalid(e.0)) | |
| 21 | + | tagtree::validate_with(tag, &TAG_CONFIG).map_err(|e| CoreError::TagInvalid(e.to_string())) | |
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | 24 | /// Add a tag to a sample. Validates format first. Idempotent. |