Skip to content

Commit ff0ac21

Browse files
committed
Revise to return an exit code on plugin compilation errors whether amxmodx compiler or compiler wrapper is used
1 parent c1831d2 commit ff0ac21

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Compile-SourceScript/Public/Compile-SourceScript.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,7 @@ function Compile-SourceScript {
154154
}
155155
}elseif ($MOD_NAME -eq 'amxmodx') {
156156
$pluginErrorRegexPattern = '^.*\.sma\(\d+\)\s*:\s*error (\d+)'
157-
if ($PSBoundParameters['SkipWrapper']) {
158-
$returnExitCode = $true
159-
}
157+
$returnExitCode = $true
160158
}
161159
New-Item -Path $COMPILED_DIR -ItemType Directory -Force | Out-Null
162160

0 commit comments

Comments
 (0)