From 90278d0fbf2101feb168edfee6b414ffc4fe1869 Mon Sep 17 00:00:00 2001 From: Roman <90373295+sibkod@users.noreply.github.com> Date: Fri, 6 Feb 2026 11:54:52 +0700 Subject: [PATCH] crypto.pbkdf2: replace a panic with an error return (#26526) --- vlib/crypto/pbkdf2/pbkdf2.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/crypto/pbkdf2/pbkdf2.v b/vlib/crypto/pbkdf2/pbkdf2.v index 295e6ab38..e44717da0 100644 --- a/vlib/crypto/pbkdf2/pbkdf2.v +++ b/vlib/crypto/pbkdf2/pbkdf2.v @@ -34,7 +34,7 @@ pub fn key(password []u8, salt []u8, count int, key_length int, h hash.Hash) ![] } } else { - panic('Unsupported hash') + return error('Unsupported hash') } } -- 2.39.5