Lower-case error message

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
This commit is contained in:
Jake Howard 2024-02-25 14:30:53 +00:00 committed by GitHub
parent fd138ac2f7
commit fa4836f761
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ impl Paste {
util::safe_path_join(self.type_.get_path(&config.server.upload_path), &file_name)
.ok_or(IoError::new(
IoErrorKind::Other,
String::from("Invalid filename"),
String::from("invalid filename"),
))?;
if let Some(timestamp) = expiry_date {
path.set_file_name(format!("{file_name}.{timestamp}"));