summaryrefslogtreecommitdiffstats
path: root/src/backends/python.rs
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-02-14 13:09:44 +0300
committersyn <isaqtm@gmail.com>2020-02-14 13:09:44 +0300
commit3da19e8603c00c02ec7e24ea8910a7c386b09018 (patch)
treebb9740afd63099a6038c22b82cf84cba8c9218e9 /src/backends/python.rs
parent30e1e3a13dc19c47afc517d1178e1dbf5b401596 (diff)
downloadevr-3da19e8603c00c02ec7e24ea8910a7c386b09018.tar.gz
Improve error handling
Diffstat (limited to 'src/backends/python.rs')
-rw-r--r--src/backends/python.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/python.rs b/src/backends/python.rs
index e3569b1..3ee7b35 100644
--- a/src/backends/python.rs
+++ b/src/backends/python.rs
@@ -2,7 +2,7 @@ use serde_derive::{ Serialize, Deserialize };
use crate::backends::{ Backend, RunError };
use std::process::{ Command };
use std::path::Path;
-use crate::wait::{ wait_child, WaitInfo };
+use crate::wait::{ wait_child, ChildExitStatus };
#[derive(Debug, Serialize, Deserialize, Default)]
pub struct PythonBackend {
@@ -32,7 +32,7 @@ impl Backend for PythonBackend {
}
}
- fn run(&self, fname: &Path) -> Result<WaitInfo, RunError> {
+ fn run(&self, fname: &Path) -> Result<ChildExitStatus, RunError> {
let timer = std::time::Instant::now();
let child = Command::new(self.get_interpreter())