Skip to content

Commit eede3e5

Browse files
committed
Simplify terminating error message
1 parent 3f66ab2 commit eede3e5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Compile-SourceScript.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function Compile-SourceScript {
138138
"`nNo new/updated plugins found. No operations were performed." | Write-Host -ForegroundColor Magenta
139139
}
140140
}catch {
141-
throw "Runtime error. `nException: $($_.Exception.Message) `nStacktrace: $($_.ScriptStackTrace)"
141+
throw "Runtime error. Exception: $($_.Exception.Message)"
142142
}finally {
143143
# Cleanup
144144
if ($stdInFile) {

module/Compile-SourceScript/Compile-SourceScript.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function Compile-SourceScript {
130130
"`nNo new/updated plugins found. No operations were performed." | Write-Host -ForegroundColor Magenta
131131
}
132132
}catch {
133-
throw "Runtime error. `nException: $($_.Exception.Message) `nStacktrace: $($_.ScriptStackTrace)"
133+
throw "Runtime error. Exception: $($_.Exception.Message)"
134134
}finally {
135135
# Cleanup
136136
if ($stdInFile) {

0 commit comments

Comments
 (0)