mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-25 16:06:32 +01:00
added better error messages inspired by rustc/cargo
but not as good
This commit is contained in:
@@ -6,10 +6,7 @@ use std::{
|
||||
|
||||
use crate::{
|
||||
data::{self, Data, MersData, MersType, Type},
|
||||
program::{
|
||||
self,
|
||||
run::{CheckError, CheckInfo},
|
||||
},
|
||||
program::{self, run::CheckInfo},
|
||||
};
|
||||
|
||||
use super::Config;
|
||||
@@ -37,7 +34,7 @@ impl Config {
|
||||
Arc::new(RunCommandErrorT)
|
||||
]))
|
||||
} else {
|
||||
return Err(CheckError(format!("run_command called with invalid arguments (must be (String, Iter<String>))")));
|
||||
return Err(format!("run_command called with invalid arguments (must be (String, Iter<String>))").into());
|
||||
}
|
||||
}),
|
||||
run: Arc::new(|a, _i| {
|
||||
|
||||
Reference in New Issue
Block a user