Skip to content

Commit 03c7e77

Browse files
authored
Update continuous-integration-workflow.yml
1 parent 44063c3 commit 03c7e77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
Write-Host "Building $($sqlproj_file.FullName)"
6161
try {
6262
msbuild "$($sqlproj_file.FullName)" /p:Configuration=Release
63+
if (!$?) {
64+
$errors = "Failed to build $($csproj_file.FullName)"
65+
}
6366
} catch {
6467
# Capture detailed error information
6568
$errorMessage = "Error building $($sqlproj_file.FullName): $($_.Exception.Message)"
@@ -94,6 +97,9 @@ jobs:
9497
Write-Host "Building $($csproj_file.FullName)"
9598
try {
9699
dotnet build "$($csproj_file.FullName)" --configuration Release
100+
if (!$?) {
101+
$errors = "Failed to build $($csproj_file.FullName)"
102+
}
97103
} catch {
98104
# Capture detailed error information
99105
$errorMessage = "Error building $($csproj_file.FullName): $($_.Exception.Message)"

0 commit comments

Comments
 (0)