Skip to content

CHEF-37251: Replace deprecated old-style catch expressions (OTP 29) - #9

Open
lbakerchef wants to merge 1 commit into
CHEF-11677/CHEF-12498/lbakerfrom
CHEF-37251/lbaker
Open

lbakerchef wants to merge 1 commit into
CHEF-11677/CHEF-12498/lbakerfrom
CHEF-37251/lbaker

Conversation

@lbakerchef

@lbakerchef lbakerchef commented Nov 12, 2026 •

Copy link
Copy Markdown

Description

OTP 29 deprecates the old-style catch Expr construct. This replaces the only use in this repo (erlcloud_sdb_tests) with an equivalent ?assertError.

Also points lhttpc at CHEF-37251/lbaker (chef/lhttpc#3), which carries the same fix for lhttpc.

Part of the Chef Infra Server Erlang/OTP 29.1.2 upgrade (chef/chef-server#4252).

Related Issue

CHEF-37251

AI assistance

This work was completed with assistance from GitHub Copilot.

Evidence

$ /opt/opscode/embedded/bin/erl -version
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 17.1.1

$ cat /opt/opscode/embedded/lib/erlang/releases/29/OTP_VERSION
29.1.2

OTP 29 deprecates the old-style `catch Expr` construct. Replace the one
use in erlcloud_sdb_tests with ?assertError, and point lhttpc at the
CHEF-37251/lbaker branch, which carries the same fix for lhttpc.

Signed-off-by: Lincoln Baker <lbaker@progress.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbakerchef lbakerchef self-assigned this Nov 18, 2026
@lbakerchef
lbakerchef marked this pull request as ready for review November 18, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant