Skip to content

Commit

Permalink
Use macro error reporting for %add_sysuser errors
Browse files Browse the repository at this point in the history
Lua has error() but no warning() (obviously) which we'll want in the next
step, so for consistency lets just use macro.error() instead.
  • Loading branch information
pmatilai committed Nov 3, 2023
1 parent 302793a commit fff4b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros.in
Original file line number Diff line number Diff line change
Expand Up @@ -1325,14 +1325,14 @@ end
prefix = 'Provides: '
end
if #arg < 2 then
error('not enough arguments')
macros.error({'not enough arguments'})
end
if arg[1] == 'g' then
type = 'group'
elseif arg[1] == 'u' then
type = 'user'
else
error('invalid sysuser type: '..arg[1])
macros.error({'invalid sysuser type: '..arg[1]})
end
name = arg[2]
line = table.concat(arg, ' ')
Expand Down

0 comments on commit fff4b0b

Please sign in to comment.