~sircmpwn/aerc

aerc: Fix dropped config error v1 PROPOSED

~alrs
This picks up a dropped err variable in the config package, and handles
it by following the adjacent pattern where an err from regexp.Compile
causes a panic.

Lars Lehtonen (1):
  config: fix dropped error

 config/config.go | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.26.2
#267855 .build.yml failed
builds.sr.ht
aerc/patches/.build.yml: FAILED in 2m10s

[Fix dropped config error][0] from [~alrs][1]

[0]: https://lists.sr.ht/~sircmpwn/aerc/patches/11790
[1]: mailto:lars.lehtonen@gmail.com

✗ #267855 FAILED aerc/patches/.build.yml https://builds.sr.ht/~sircmpwn/job/267855
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/11790/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH aerc 1/1] config: fix dropped error Export this patch

~alrs
From: Lars Lehtonen <lars.lehtonen@gmail.com>

---
 config/config.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/config/config.go b/config/config.go
index 00a52ce..9482653 100644
--- a/config/config.go
+++ b/config/config.go
@@ -303,6 +303,9 @@ func (config *AercConfig) LoadConfig(file *ini.File) error {
				value := filter.Filter[strings.Index(filter.Filter, ",")+1:]
				filter.Header = strings.ToLower(header)
				filter.Regex, err = regexp.Compile(regexp.QuoteMeta(value))
				if err != nil {
					panic(err)
				}
			} else {
				filter.FilterType = FILTER_MIMETYPE
			}
-- 
2.26.2
builds.sr.ht
aerc/patches/.build.yml: FAILED in 2m10s

[Fix dropped config error][0] from [~alrs][1]

[0]: https://lists.sr.ht/~sircmpwn/aerc/patches/11790
[1]: mailto:lars.lehtonen@gmail.com

✗ #267855 FAILED aerc/patches/.build.yml https://builds.sr.ht/~sircmpwn/job/267855