Commit e6e2bf5
committed
Don't mangle escapes in
This was added in 1a32fbc, for unclear
reasons. They say "for easier debugging", but e.g. the `Error::EOF`
variant wasn't given the same treatment.
Also, if you do a `session.exp_string("...").unwrap()`, you get terribly
mangled output that misrepresents what the program actually printed,
e.g.:
```
called `Result::unwrap()` on an `Err` value: Timeout { expected: "\"Hello, world!\"", got: "\u{8}`^`[2C`^`[?7h`^`[0m`^}
```
Instead, we should use a familiar and predictable escaping format: the
built-in `impl Debug for String`.Error::Timeout
1 parent 3706084 commit e6e2bf5
2 files changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 276 | + | |
282 | 277 | | |
283 | 278 | | |
284 | 279 | | |
| |||
0 commit comments