Skip to content

Commit 75f338f

Browse files
committed
Merge pull request #2360 from pguyot/w29/fix-unix-uart-spec
Raise consistently on avm_unix uart:open/1,2 failure These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 4e5374b + b8a6340 commit 75f338f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/avm_unix/src/uart.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ open(Opts) ->
9191
{Pid, Fd};
9292
{error, _} = CfgErr ->
9393
atomvm:posix_close(Fd),
94-
CfgErr
94+
error(CfgErr)
9595
end;
9696
{error, Reason} ->
9797
error(Reason)

0 commit comments

Comments
 (0)