From 9a6c38e9b96d680ec86d2c3a915d4b00478d7f96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Thu, 10 Sep 2020 01:28:53 +0200 Subject: [PATCH] Move report URL into a global --- agetpkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agetpkg b/agetpkg index 0379f1e..99161a3 100755 --- a/agetpkg +++ b/agetpkg @@ -40,6 +40,7 @@ from xdg.BaseDirectory import save_cache_path NAME = "agetpkg" VERSION = "3" ARCHIVE_URL = "https://archive.archlinux.org/packages/.all/" +REPORT_URL = "https://github.com/seblu/agetpkg/issues" INDEX_FILENAME = "index.0.xz" PKG_EXT = ".pkg.tar.xz" SIG_EXT = ".sig" @@ -394,8 +395,7 @@ def main(): error(exp) exit(Error.ERR_FATAL) except Exception as exp: - error("Unknown error. Please report it with --debug") - error("at https://github.com/seblu/agetpkg/issues.") + error(f"Unknown error. Please report it with --debug at {REPORT_URL}.") error(exp) if getLogger().getEffectiveLevel() == DEBUG: raise -- GitLab