Skip to content

Commit

Permalink
fix: clarify error message for UnsupportedPrecision (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
iajoiner authored Jan 8, 2025
2 parents 16c5532 + c5bf322 commit f49336e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/proof-of-sql-parser/src/posql_time/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use alloc::string::{String, ToString};
use serde::{Deserialize, Serialize};
use snafu::Snafu;

/// Errors related to time operations, including timezone and timestamp conversions.s
/// Errors related to time operations, including timezone and timestamp conversions.
#[allow(clippy::module_name_repetitions)]
#[derive(Snafu, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub enum PoSQLTimestampError {
Expand Down Expand Up @@ -47,7 +47,7 @@ pub enum PoSQLTimestampError {

/// Represents a failure to parse a provided time unit precision value, `PoSQL` supports
/// Seconds, Milliseconds, Microseconds, and Nanoseconds
#[snafu(display("Timestamp parsing error: {error}"))]
#[snafu(display("Unsupported precision for timestamp:: {error}"))]
UnsupportedPrecision {
/// The underlying error
error: String,
Expand Down

0 comments on commit f49336e

Please sign in to comment.