Skip to content

Commit e21a97b

Browse files
committed
change to a more descriptive error message
1 parent 547171d commit e21a97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl DomainExtractor {
255255
}
256256

257257
if url_str.len() > 255 {
258-
return Err(PyValueError::new_err("Invalid domain detected"));
258+
return Err(PyValueError::new_err("url is invalid: too long"));
259259
}
260260
let mut domain_string = unsafe {
261261
DomainString::from_str_unchecked(url_str)

0 commit comments

Comments
 (0)