style: consistent logging

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
Vladislav Doster 2023-01-14 02:38:27 -06:00
parent 4fba9d16b9
commit ab7f3ec4bd

View file

@ -77,13 +77,13 @@ if [[ -n ${ICE[dl]} && ${ICE[dl]} != ink=[-/[:alnum:]]* ]]; then
if ! .zinit-annex-patch-dl-download-file-stdout "${srcdst[1]}" >! "$tdir/$tl"; then
if ! .zinit-annex-patch-dl-download-file-stdout "${srcdst[1]}" 1 >! "$tdir/$tl"; then
+zinit-message "{info}[{pre}patch-dl annex{info}]{error} Failed to download the URL {glob}${srcdst[1]}{rst}"
+zinit-message "{error}Error:{rst} {b}patch-dl{rst}: Failed to download URL {glob}${srcdst[1]}{rst}"
ret=1
fi
fi
if (( !ret && !OPTS[opt_-q,--quiet] && ZINIT[annex-multi-flag:pull-active] == 2 )); then
+zinit-message "{info}[{pre}patch-dl annex{info}] {file}${tl}{rst} downloaded successfully"
+zinit-message "{pre}==>{rst} {b}patch-dl{rst}: {file}${tl}{rst} downloaded"
fi
}
fi
@ -98,7 +98,7 @@ if [[ -n "${ICE[patch]}" ]]; then
@zinit-substitute pch
if (( !OPTS[opt_-q,--quiet] && ZINIT[annex-multi-flag:pull-active] == 2 )); then
+zinit-message "{info}[{pre}patch-dl annex{info}]{rst} Applying patch {pname}${pch}{rst}"
+zinit-message "{pre}==>{rst} {b}patch-dl{rst}: Applying patch {pname}${pch}{rst}"
fi
(