Skip to content

Commit cccbe22

Browse files
committed
Fix compile errors
1 parent 55eb4ba commit cccbe22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ pub fn load_manifest(path: &Path) -> Result<ImportedManifest, DscError> {
619619
let manifest = match serde_yaml::from_str::<ExtensionManifest>(&contents) {
620620
Ok(manifest) => manifest,
621621
Err(err) => {
622-
return Err(DscError::Validation(format!("Invalid manifest {path:?} version value: {err}")));
622+
return Err(DscError::Manifest(t!("discovery.commandDiscovery.invalidManifest", resource = path.to_string_lossy()).to_string(), err));
623623
}
624624
};
625625
let extension = load_extension_manifest(path, &manifest)?;
@@ -628,7 +628,7 @@ pub fn load_manifest(path: &Path) -> Result<ImportedManifest, DscError> {
628628

629629
fn load_resource_manifest(path: &Path, manifest: &ResourceManifest) -> Result<DscResource, DscError> {
630630
if let Err(err) = validate_semver(&manifest.version) {
631-
return Err(DscError::Validation(format!("Invalid manifest {path:?} version value: {err}")));
631+
return Err(DscError::Validation(format!("Invalid manifest {} version value: {err}", path.display())));
632632
}
633633

634634
let kind = if let Some(kind) = manifest.kind.clone() {

0 commit comments

Comments
 (0)