Skip to content

Commit

Permalink
feat(rename, add): error includes type and scope
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Apr 5, 2020
1 parent c18a57d commit cdf22c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsh-abbr.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ _zsh_abbr() {
util_add $new_abbreviation $expansion
erase $current_abbreviation
else
util_error " rename: No matching abbreviation $current_abbreviation exists"
util_error " rename: No ${type:-regular} ${scope:-user} abbreviation $current_abbreviation exists"
fi

_zsh_abbr_job_pop $job $job_group
Expand Down Expand Up @@ -451,7 +451,7 @@ _zsh_abbr() {
_zsh_abbr_job_pop $job $job_group

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

Expand Down

0 comments on commit cdf22c0

Please sign in to comment.