diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-01-28 22:05:44 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-01-28 22:05:44 +0100 |
| commit | 8eea80192eb1d913e1d4840af3a4a2b2c5a82b9d (patch) | |
| tree | 1858c7601dc56f9047427a1d333a9d4734871755 /src/error.rs | |
| parent | e255b79af57d1e202816ccbb59e73115b27e9c38 (diff) | |
| parent | 3a987d3dfe0014bed43151874882c5b4f20eb7af (diff) | |
| download | sylt-8eea80192eb1d913e1d4840af3a4a2b2c5a82b9d.tar.gz | |
Merge branch 'structs'
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index 1430a52..60eea3b 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 => { |
