diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 14:19:39 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 14:19:39 (EDT) |
commit | 799b509b1fcbed2bf351294241056c494254a763 (patch) | |
tree | 8c14c84f523071df2502ef4bb48b267ab1862d7d | |
parent | 738d5e1603ffe1a9ce099db63ffcc6d1428ab3e4 (diff) |
_ob_get_changelog_expect_str(): Abort on missing argument
-rw-r--r-- | lib/changelog.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/changelog.sh b/lib/changelog.sh index e3d45d1..28357f5 100644 --- a/lib/changelog.sh +++ b/lib/changelog.sh @@ -34,7 +34,10 @@ _ob_parse_changelog_error() _ob_get_changelog_expect_str() { - _ob_get_msg "changelog_expect_${1}" + local msg_id="${1}" + shift 1 || _ob_abort + + _ob_get_msg "changelog_expect_${msg_id}" return 0 } |