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)