From f74f5620224821c80020edcbd5b9b6fbd7610f4e Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 18 Oct 2023 08:50:13 +0000 Subject: [PATCH] only strip actual file/line part from the eval error --- usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm index 1eee1865321..6f56917d998 100644 --- a/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm +++ b/usr.sbin/pkg_add/OpenBSD/ProgressMeter/Term.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Term.pm,v 1.44 2023/06/13 09:07:18 espie Exp $ +# $OpenBSD: Term.pm,v 1.45 2023/10/18 08:50:13 espie Exp $ # # Copyright (c) 2004-2007 Marc Espie # @@ -106,7 +106,7 @@ sub init($self) }; if ($@) { chomp $@; - $@ =~ s/\s+at\s+.*\s+line\s+.*//; + $@ =~ s/\s+at\s+\/.*\s+line\s+.*//; $self->{state}->errsay("No progress meter: #1", $@); bless $self, "OpenBSD::ProgressMeter::Stub"; return; -- 2.20.1