diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-14 13:38:25 +0200 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-14 13:38:25 +0200 |
| commit | f2f45e3057dbead3c7682aaae468443a11e00f5b (patch) | |
| tree | 8633e8cd3d9d8922ac1d161b49dbd07c373d70e0 | |
| parent | 14b9d12232907d4816aedab41e43b3ed678aa9c9 (diff) | |
| download | alpine-secdb-f2f45e3057dbead3c7682aaae468443a11e00f5b.tar.bz2 alpine-secdb-f2f45e3057dbead3c7682aaae468443a11e00f5b.tar.xz | |
secfixes.lua: better assert error message
its helpful to know what package has wrong version string
| -rw-r--r-- | secfixes.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/secfixes.lua b/secfixes.lua index fa2aab2..a25e9c2 100644 --- a/secfixes.lua +++ b/secfixes.lua @@ -52,7 +52,7 @@ function verify_yaml(file) assert(type(p.pkg.secfixes) == "table", file..": "..p.pkg.name..": secfixes is not a table") for k,v in pairs(p.pkg.secfixes) do assert(type(k) == "string", file..": "..p.pkg.name..": not a string: "..tostring(k)) - assert(string.match(k, "^[0-9]+")) + assert(string.match(k, "^[0-9]+"), p.pkg.name..": "..tostring(k)) assert(type(v) == "table", file..": "..p.pkg.name..": "..k..": not a table") end end |
