# HG changeset patch # User Matthew Wild # Date 1753198467 -3600 # Node ID 9a69918b5e635518381d26c6ae25935ba664b175 # Parent 2f754817bf4bf77f2b7ef0502111de8efc7b246f mod_storage_sql: Assert that serialization of archive:set() payload succeeds Potentially encountered on a production server - the assert() should prevent more subtle failure modes, and help us pinpoint the root cause. diff -r 2f754817bf4b -r 9a69918b5e63 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Mon Jul 14 16:42:59 2025 +0200 +++ b/plugins/mod_storage_sql.lua Tue Jul 22 16:34:27 2025 +0100 @@ -556,7 +556,7 @@ if new_value then table.insert(setf, '"type" = ?') table.insert(setf, '"value" = ?') - local t, value = serialize(new_value); + local t, value = assert(serialize(new_value)); table.insert(args, 1, t); table.insert(args, 2, value); end