Skip to content

Commit cdf22c0

Browse files
committed
feat(rename, add): error includes type and scope
1 parent c18a57d commit cdf22c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zsh-abbr.zsh

+2-2
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ _zsh_abbr() {
369369
util_add $new_abbreviation $expansion
370370
erase $current_abbreviation
371371
else
372-
util_error " rename: No matching abbreviation $current_abbreviation exists"
372+
util_error " rename: No ${type:-regular} ${scope:-user} abbreviation $current_abbreviation exists"
373373
fi
374374

375375
_zsh_abbr_job_pop $job $job_group
@@ -451,7 +451,7 @@ _zsh_abbr() {
451451
_zsh_abbr_job_pop $job $job_group
452452

453453
if ! (( success )); then
454-
util_error " add: A $type $scope abbreviation $1 already exists"
454+
util_error " add: A ${type:-regular} ${scope:-user} abbreviation $abbreviation already exists"
455455
fi
456456
}
457457

0 commit comments

Comments
 (0)