Skip to content

Commit 8599c01

Browse files
Fix lint: wrap Initialize-Sodium VC++ diagnostic message
1 parent 5e142d1 commit 8599c01

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/functions/private/Initialize-Sodium.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
if ($script:ProcessArchitecture -in @('X64', 'X86')) {
2828
$hasRuntime = Assert-VisualCRedistributableInstalled -Version '14.0' -Architecture $script:ProcessArchitecture
2929
if (-not $hasRuntime) {
30-
throw "Sodium native initialization failed; the Visual C++ Redistributable for $($script:ProcessArchitecture) appears to be missing or below the required version."
30+
$message = "Sodium native initialization failed; the Visual C++ Redistributable for " +
31+
"$($script:ProcessArchitecture) appears to be missing or below the required version."
32+
throw $message
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)