mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-07 10:22:51 +00:00
Update console.html
This commit is contained in:
parent
5004e64363
commit
d494195996
|
@ -61,6 +61,8 @@
|
||||||
var end = s.lastIndexOf('}');
|
var end = s.lastIndexOf('}');
|
||||||
if (start > -1 && end > -1 && end > start) {
|
if (start > -1 && end > -1 && end > start) {
|
||||||
responseData = JSON.parse(s.substring(start, end));
|
responseData = JSON.parse(s.substring(start, end));
|
||||||
|
} else {
|
||||||
|
throw new Error("It does not seem like a JSON format.");
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
responseData.error.message = e.message
|
responseData.error.message = e.message
|
||||||
|
|
Loading…
Reference in New Issue
Block a user