From b8a6340a95cbe179e12446df531787bd710af21b Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Sat, 18 Jul 2026 08:07:13 +0200 Subject: [PATCH] Raise consistently on avm_unix uart:open/1,2 failure The configure-failure branch returned {error, _} while the other two failure paths raise; the open/1,2 spec only allows {pid(), fd()}. Signed-off-by: Paul Guyot --- libs/avm_unix/src/uart.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/avm_unix/src/uart.erl b/libs/avm_unix/src/uart.erl index b66a7808a7..3b54e565d5 100644 --- a/libs/avm_unix/src/uart.erl +++ b/libs/avm_unix/src/uart.erl @@ -91,7 +91,7 @@ open(Opts) -> {Pid, Fd}; {error, _} = CfgErr -> atomvm:posix_close(Fd), - CfgErr + error(CfgErr) end; {error, Reason} -> error(Reason)