Skip to content

Commit 12c97aa

Browse files
committed
fix build
1 parent 22d57e5 commit 12c97aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dsc/src/util.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use dsc_lib::{
2727
};
2828
use jsonschema::Validator;
2929
use path_absolutize::Absolutize;
30+
use rust_i18n::t;
3031
use schemars::{schema_for, schema::RootSchema};
3132
use serde::Deserialize;
3233
use serde_json::Value;
@@ -438,12 +439,12 @@ pub fn validate_json(source: &str, schema: &Value, json: &Value) -> Result<(), D
438439
let compiled_schema = match Validator::new(schema) {
439440
Ok(compiled_schema) => compiled_schema,
440441
Err(err) => {
441-
return Err(DscError::Validation(format!("{}: {err}", t!("util.failedToCompileSchema")));
442+
return Err(DscError::Validation(format!("{}: {err}", t!("util.failedToCompileSchema"))));
442443
}
443444
};
444445

445446
if let Err(err) = compiled_schema.validate(json) {
446-
return Err(DscError::Validation(format!("{}: '{source}' {err}", t!("util.validationFailed")));
447+
return Err(DscError::Validation(format!("{}: '{source}' {err}", t!("util.validationFailed"))));
447448
};
448449

449450
Ok(())

0 commit comments

Comments
 (0)