Skip to content

Commit 7af2311

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix message to be error
1 parent 47f9457 commit 7af2311

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dsc/tests/dsc_extension_discover.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Describe 'Discover extension tests' {
194194
$env:DSC_RESOURCE_PATH = $TestDrive + [System.IO.Path]::PathSeparator + $env:PATH
195195
$env:TestDrive = $TestDrive
196196
$out = dsc -l info resource list 2> $TestDrive/error.log | ConvertFrom-Json
197-
$LASTEXITCODE | Should -Be 0
197+
$LASTEXITCODE | Should -Be 0 -Because (Get-Content -Path "$TestDrive/error.log" -Raw | Out-String)
198198
# The invalid manifest should be skipped and not included in the discovered resources
199199
foreach ($resource in $out) {
200200
$resource.type | Should -Not -Be 'Test/InvalidManifest'

lib/dsc-lib/src/discovery/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use core::result::Result::Ok;
1313
use semver::{Version, VersionReq};
1414
use std::collections::BTreeMap;
1515
use command_discovery::{CommandDiscovery, ImportedManifest};
16-
use tracing::info;
16+
use tracing::error;
1717

1818
#[derive(Clone)]
1919
pub struct Discovery {
@@ -61,7 +61,7 @@ impl Discovery {
6161
let discovered_resources = match discovery_type.list_available(kind, type_name_filter, adapter_name_filter) {
6262
Ok(value) => value,
6363
Err(err) => {
64-
info!("{err}");
64+
error!("{err}");
6565
continue;
6666
}
6767
};

0 commit comments

Comments
 (0)