]> git.ipfire.org Git - thirdparty/git.git/commit
imap-send: improve error messages with configuration hints
authorJörg Thalheim <joerg@thalheim.io>
Fri, 20 Jun 2025 15:56:14 +0000 (17:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2025 21:14:44 +0000 (14:14 -0700)
commitd30bf28d09d4d13ca7984d8593522be22f698f8a
treea53c4b74d384c6a7540a08a5731a5f2c99e64e6e
parent1d304ce1301f4bcc239683702e8d9e675f5f78f4
imap-send: improve error messages with configuration hints

Replace basic error messages with more helpful ones that guide users
on how to resolve configuration issues. When imap.host or imap.folder
are missing, provide the exact git config commands needed to fix the
problem, along with examples of typical values.

Use the advise() API to display hints in a multi-line format with
proper "hint:" prefixes for each line.

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c