]> Repositorios git - scryer-prolog.git/commitdiff
http_open/3 try_or_throw
authorAdrián Arroyo Calle <[email protected]>
Sun, 27 Mar 2022 12:23:14 +0000 (14:23 +0200)
committerAdrián Arroyo Calle <[email protected]>
Mon, 28 Mar 2022 18:38:55 +0000 (20:38 +0200)
src/machine/dispatch.rs

index 9320ac5d6ca93a73ca537d0d5ba495e3804113d1..cb3dbe59439a9eb0dd2440f4311fe22d46d54b95 100644 (file)
@@ -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(_) => {