Skip to content

Commit

Permalink
Fix error messages for invalid BuildUser.
Browse files Browse the repository at this point in the history
  • Loading branch information
juster committed Jun 26, 2011
1 parent 4aed5d0 commit 56dd70e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions clyde
Expand Up @@ -787,14 +787,15 @@ local function _parseconfig(file, givensection, givendb)
end;
['BuildUser'] = function (user)
if config.build_user then
lprintf("LOG_WARNING", "overwriting previous BuildUser")
lprintf("LOG_WARNING", "overwriting previous BuildUser\n")
end
local success, result = pcall(utilcore.getpwnam, user)
if not result then
result = "unknown user "..user
success = false
end
if not success then
if not result then
result = "unknown username "..user
end
lprintf("LOG_ERROR", "could not set BuildUser: "..result)
lprintf("LOG_ERROR", "could not set BuildUser: %s\n", result)
ret = 1
return configcleanup()
end
Expand Down

0 comments on commit 56dd70e

Please sign in to comment.