Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leftover output::error args usages #1671

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function utils::bundled_pip_module_path() {
local bundled_pip_wheel="${bundled_pip_wheel_list[0]}"

if [[ -z "${bundled_pip_wheel}" ]]; then
output::error "Error: Failed to locate the bundled pip wheel."
output::error <<-'EOF'
Error: Failed to locate the bundled pip wheel.
EOF
meta_set "failure_reason" "bundled-pip-not-found"
return 1
fi
Expand All @@ -28,7 +30,9 @@ function utils::bundled_pip_module_path() {

function utils::abort_internal_error() {
local message="${1}"
output::error "Internal error: ${message} (line $(caller || true))."
output::error <<-EOF
Internal error: ${message} (line $(caller || true)).
EOF
meta_set "failure_reason" "internal-error"
exit 1
}