Skip to content

Commit

Permalink
Improve error handling when non-existing namespace is passed to new cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
edannenberg committed Aug 25, 2019
1 parent ea1b6ad commit c33b8fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ function main() {

if [[ "${_arg_template_type}" == 'image' || "${_arg_template_type}" == 'builder' ]]; then
get_ns_include_path "${target_namespace}"
[ $? -eq 3 ] && die "No namespace with id \"${target_namespace}\""
# shellcheck disable=SC2154
source_namespace_conf "${__get_ns_include_path}"
add_template_filter_var '_tmpl_image_name' "${target_image_name}"
Expand Down

0 comments on commit c33b8fc

Please sign in to comment.