summaryrefslogtreecommitdiff
path: root/dh_systemd_enable
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-10-10 17:33:40 +0000
committerNiels Thykier <niels@thykier.net>2017-10-10 17:33:40 +0000
commitb386398cbac226fc141dc004de358bb11404b910 (patch)
tree8670ee10237eb319e3f2daf03068036b8d7bd1b8 /dh_systemd_enable
parent841170155bec2f60a2c4bcc03346bc296ff7525f (diff)
downloaddebhelper-b386398cbac226fc141dc004de358bb11404b910.tar.gz
dh_systemd_enable: Correct error message
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'dh_systemd_enable')
-rwxr-xr-xdh_systemd_enable2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh_systemd_enable b/dh_systemd_enable
index 7c3f3385..bcb52728 100755
--- a/dh_systemd_enable
+++ b/dh_systemd_enable
@@ -120,7 +120,7 @@ init(options => {
sub contains_install_section {
my ($unit_path) = @_;
- open(my $fh, '<', $unit_path) or error("Cannot open($unit_path) for extracting the Also= line(s)");
+ open(my $fh, '<', $unit_path) or error("Cannot open($unit_path) to check for [Install]");
while (my $line = <$fh>) {
chomp($line);
return 1 if $line =~ /^\s*\[Install\]$/i;