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