aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 525dbc6..a8ea730 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -33,13 +33,13 @@ impl fmt::Display for ErrorKind {
ErrorKind::TypeError(op, types) => {
let types = types
.iter()
- .fold(String::new(), |a, v| { format!("{}, {:?}", a, v) });
+ .fold(String::new(), |a, v| { format!("{}{:?}, ", a, v) });
write!(f, "{} Cannot apply {:?} to types {}", "Type Error".bold(), op, types)
}
ErrorKind::RuntimeTypeError(op, values) => {
let values = values
.iter()
- .fold(String::new(), |a, v| { format!("{}, {:?}", a, v) });
+ .fold(String::new(), |a, v| { format!("{}{:?}, ", a, v) });
write!(f, "{} Cannot apply {:?} to values {}", "Runtime Type Error".bold(), op, values)
}
ErrorKind::Assert => {