diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-26 18:20:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-26 18:20:55 +0000 |
commit | 89a45afe87999d3772e60dcd13b4895fe5e50d59 (patch) | |
tree | cf2d235b435a9f78840d5b75bec5e38b48782cee | |
parent | 469a9dad368a25ede43f61b760ff7c8532aff712 (diff) | |
download | iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar.gz iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar.bz2 iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar.xz iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.zip |
better error messages when running as root or w/o sudo
(no line numbers in output)
-rwxr-xr-x | iurt2 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -670,14 +670,14 @@ if ($run{use_cache}) { $run{daydate} = $daydate; plog('DEBUG', "using $run{run} as chroot extension"); $run{user} ||= $ENV{USER}; -die "Iurt should not be executed as root." if $run{user} eq "root"; +die "Iurt should not be executed as root.\n" if $run{user} eq "root"; $run{uid} = getpwnam $run{user}; plog('DEBUG', "using local user $run{user}, id $run{uid}"); my $luser = $run{user} || 'builder'; check_sudo_access() - or die "FATAL: you need to have sudo access on $config->{iurt_root_command} to run $program_name"; + or die "FATAL: you need to have sudo access on $config->{iurt_root_command} to run $program_name\n"; my $debug_tag = $run{debug} && '_debug'; $run{debug_tag} = $debug_tag; |