From bb2a8c90908f2c420d27a1fa6217d69af28e62d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adri=C3=A1n=20Arroyo=20Calle?= Date: Sun, 27 Mar 2022 14:23:14 +0200 Subject: [PATCH] http_open/3 try_or_throw --- src/machine/dispatch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine/dispatch.rs b/src/machine/dispatch.rs index 9320ac5d..cb3dbe59 100644 --- a/src/machine/dispatch.rs +++ b/src/machine/dispatch.rs @@ -4128,11 +4128,11 @@ impl Machine { step_or_fail!(self, self.machine_st.p = self.machine_st.cp); } &Instruction::CallHttpOpen(_) => { - self.http_open(); + try_or_throw!(self.machine_st, self.http_open()); step_or_fail!(self, self.machine_st.p += 1); } &Instruction::ExecuteHttpOpen(_) => { - self.http_open(); + try_or_throw!(self.machine_st, self.http_open()); step_or_fail!(self, self.machine_st.p = self.machine_st.cp); } &Instruction::CallCurrentTime(_) => { -- 2.54.0