Skip to content

Commit 0b58c3b

Browse files
Address review comment
1 parent 821274a commit 0b58c3b

File tree

1 file changed

+2
-2
lines changed
  • datafusion/core/src/execution/context

1 file changed

+2
-2
lines changed

datafusion/core/src/execution/context/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,8 +1342,8 @@ impl SessionContext {
13421342
match unit {
13431343
"m" if minutes.is_none() && seconds.is_none() => minutes = Some(number),
13441344
"s" if seconds.is_none() => seconds = Some(number),
1345-
_ => plan_err!(
1346-
"Invalid duration, unit must be either 'm' (minutes), or 's' (seconds), and be in the correct order for '{config_name}'"
1345+
other => plan_err!(
1346+
"Invalid duration unit: '{other}'. The unit must be either 'm' (minutes), or 's' (seconds), and be in the correct order for '{config_name}'"
13471347
)?,
13481348
}
13491349
}

0 commit comments

Comments
 (0)