Skip to content

Commit 58ac2b2

Browse files
committed
Version 2.5.6 Fix REST bug handling errors
1 parent 2ce2704 commit 58ac2b2

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

easycoder/plugins/rest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const EasyCoder_Rest = {
134134
};
135135
targetRecord.used = true;
136136
}
137+
program.run(command.pc + 1);
137138
} else {
138139
const error = `${request.status} ${request.statusText}`;
139140
if (command.onError) {
@@ -143,7 +144,6 @@ const EasyCoder_Rest = {
143144
program.runtimeError(command.lino, `Error: ${error}`);
144145
}
145146
}
146-
program.run(command.pc + 1);
147147
};
148148

149149
request.onerror = function () {

js/EasyCoder-Cordova.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EasyCoder.version = `2.5.5`;
1+
EasyCoder.version = `2.5.6`;
22
EasyCoder.timestamp = Date.now();
33

44
const app = {

js/EasyCoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EasyCoder.version = `2.5.5`;
1+
EasyCoder.version = `2.5.6`;
22
EasyCoder.timestamp = Date.now();
33
console.log(`EasyCoder loaded; waiting for page`);
44

js/plugins/rest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ const EasyCoder_Rest = {
134134
};
135135
targetRecord.used = true;
136136
}
137+
program.run(command.pc + 1);
137138
} else {
138139
const error = `${request.status} ${request.statusText}`;
139140
if (command.onError) {
@@ -143,7 +144,6 @@ const EasyCoder_Rest = {
143144
program.runtimeError(command.lino, `Error: ${error}`);
144145
}
145146
}
146-
program.run(command.pc + 1);
147147
};
148148

149149
request.onerror = function () {

server/easycoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: EasyCoder
44
* Plugin URI: https://easycoder.software
55
* Description: Control the appearance and behavior of your posts and pages by embedding simple English-like scripts, without the need to learn JavaScript.
6-
* Version: 2.5.5
6+
* Version: 2.5.6
77
* Author: EasyCoder Software
88
* Author URI: https://easycoder.software
99
*/
@@ -16,7 +16,7 @@
1616
add_action('wp_enqueue_scripts', 'easycoder_enqueue_script', 2);
1717
function easycoder_enqueue_script() {
1818
wp_enqueue_script('easycoder_script', plugin_dir_url( __FILE__ )
19-
. 'easycoder-min.js', array(), '2.5.5');
19+
. 'easycoder-min.js', array(), '2.5.6');
2020
}
2121

2222
// Set up default plugin and REST scripts

server/readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ For tutorials and a programmers' reference see our [EasyCoder Software Codex](ht
5454

5555
== Changelog ==
5656

57+
= 2.5.6 14-dec-2019 =
58+
* Fix bug in REST handling errors
59+
5760
= 2.5.5 12-dec-2019 =
5861
* Fix problems with exit(); replace program with name in objects
5962

0 commit comments

Comments
 (0)