Show More
@@ -253,6 +253,7 b' dependencies = [' | |||||
253 | "cpython 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", |
|
253 | "cpython 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", | |
254 | "hg-core 0.1.0", |
|
254 | "hg-core 0.1.0", | |
255 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", |
|
255 | "libc 0.2.67 (registry+https://github.com/rust-lang/crates.io-index)", | |
|
256 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", | |||
256 | "simple_logger 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", |
|
257 | "simple_logger 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", | |
257 | ] |
|
258 | ] | |
258 |
|
259 |
@@ -24,6 +24,7 b' python3-bin = ["cpython/python3-sys"]' | |||||
24 | [dependencies] |
|
24 | [dependencies] | |
25 | hg-core = { path = "../hg-core"} |
|
25 | hg-core = { path = "../hg-core"} | |
26 | libc = '*' |
|
26 | libc = '*' | |
|
27 | log = "0.4.8" | |||
27 | simple_logger = "1.6.0" |
|
28 | simple_logger = "1.6.0" | |
28 |
|
29 | |||
29 | [dependencies.cpython] |
|
30 | [dependencies.cpython] |
@@ -84,7 +84,10 b' fn collect_bad_matches(' | |||||
84 | fn handle_fallback(py: Python, err: StatusError) -> PyErr { |
|
84 | fn handle_fallback(py: Python, err: StatusError) -> PyErr { | |
85 | match err { |
|
85 | match err { | |
86 | StatusError::Pattern(e) => { |
|
86 | StatusError::Pattern(e) => { | |
87 | PyErr::new::<FallbackError, _>(py, e.to_string()) |
|
87 | let as_string = e.to_string(); | |
|
88 | log::trace!("Rust status fallback: `{}`", &as_string); | |||
|
89 | ||||
|
90 | PyErr::new::<FallbackError, _>(py, &as_string) | |||
88 | } |
|
91 | } | |
89 | e => PyErr::new::<ValueError, _>(py, e.to_string()), |
|
92 | e => PyErr::new::<ValueError, _>(py, e.to_string()), | |
90 | } |
|
93 | } |
General Comments 0
You need to be logged in to leave comments.
Login now