Skip to content

Commit

Permalink
Fix wrong type in get_random error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
rxxrc authored and Keats committed Sep 19, 2022
1 parent 566e58a commit 1860024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builtins/functions.rs
Expand Up @@ -145,7 +145,7 @@ pub fn get_random(args: &HashMap<String, Value>) -> Result<Value> {
Ok(v) => v,
Err(_) => {
return Err(Error::msg(format!(
"Function `get_random` received start={} but `start` can only be a boolean",
"Function `get_random` received start={} but `start` can only be a number",
val
)));
}
Expand All @@ -158,7 +158,7 @@ pub fn get_random(args: &HashMap<String, Value>) -> Result<Value> {
Ok(v) => v,
Err(_) => {
return Err(Error::msg(format!(
"Function `get_random` received end={} but `end` can only be a boolean",
"Function `get_random` received end={} but `end` can only be a number",
val
)));
}
Expand Down

0 comments on commit 1860024

Please sign in to comment.