Skip to content

Commit 3fd3937

Browse files
committed
fixes #100 - error output for ImportModuleManifest
1 parent 3146283 commit 3fd3937

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Added new Markdown processing functionality to address two Markdown linting issues:
1515
- `MD022/blanks-around-headings`
1616
- `MD040/fenced-code-language`
17+
- Added more detailed error output to `ImportModuleManifest`
1718
- CI/CD Changes:
1819
- Pester bumped from `5.6.1` to `5.7.1`
1920
- InvokeBuild bumped from `5.11.3` to `5.12.1`
@@ -25,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2526
- Added new Markdown processing functionality to address two Markdown linting issues:
2627
- `MD022/blanks-around-headings`
2728
- `MD040/fenced-code-language`
29+
- Added more detailed error output to `ImportModuleManifest`
2830
- Pester bumped from `5.6.1` to `5.7.1`
2931
- InvokeBuild bumped from `5.11.3` to `5.12.1`
3032
- PSScriptAnalyzer bumped from `1.22.0` to `1.23.0`

src/Catesta.build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Add-BuildTask ImportModuleManifest {
144144
Import-Module $script:ModuleManifestFile -Force -PassThru -ErrorAction Stop
145145
}
146146
catch {
147+
Write-Build Red " ...$_`n"
147148
throw 'Unable to load the project module'
148149
}
149150
Write-Build Green " ...$script:ModuleName imported successfully"

src/Catesta/Resources/Module/src/PSModule.build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ Add-BuildTask ImportModuleManifest {
177177
Import-Module $script:ModuleManifestFile -Force -PassThru -ErrorAction Stop
178178
}
179179
catch {
180+
Write-Build Red " ...$_`n"
180181
throw 'Unable to load the project module'
181182
}
182183
Write-Build Green " ...$script:ModuleName imported successfully"

src/Catesta/Resources/Vault/src/PSVault.build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Add-BuildTask ImportModuleManifest {
166166
Import-Module $script:ModuleManifestFile -Force -PassThru -ErrorAction Stop
167167
}
168168
catch {
169+
Write-Build Red " ...$_`n"
169170
throw 'Unable to load the project module'
170171
}
171172
Write-Build Green " ...$script:ModuleName imported successfully"

0 commit comments

Comments
 (0)