Skip to content

Commit 4d4801f

Browse files
committed
alert added temporarily for error handling
1 parent 12a6748 commit 4d4801f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/graph-builder/graph-core/6-server.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,42 +68,42 @@ class GraphServer extends GraphLoadSave {
6868
build() {
6969
// TODO
7070
Axios.post(`http://127.0.0.1:5000/build/sample?fetch=${this.getGraphML()}&apikey=${this.id}`)
71-
.then(() => { });
71+
.then(() => { }).catch((err) => { alert(err); });
7272
if (this.serverID);
7373
}
7474

7575
debug() {
7676
// TODO
77-
Axios.post('http://127.0.0.1:5000/debug/sample')
78-
.then(() => { });
77+
Axios.post(`http://127.0.0.1:5000/debug/${this.getGraphML()}`)
78+
.then(() => { }).catch((err) => { alert(err); });
7979
if (this.serverID);
8080
}
8181

8282
run() {
8383
// TODO
8484
Axios.post('http://127.0.0.1:5000/run/sample')
85-
.then(() => { });
85+
.then(() => { }).catch((err) => { alert(err); });
8686
if (this.serverID);
8787
}
8888

8989
clear() {
9090
// TODO
9191
Axios.post('http://127.0.0.1:5000/clear/sample')
92-
.then(() => { });
92+
.then(() => { }).catch((err) => { alert(err); });
9393
if (this.serverID);
9494
}
9595

9696
stop() {
9797
// TODO
9898
Axios.post('http://127.0.0.1:5000/stop/sample')
99-
.then(() => { });
99+
.then(() => { }).catch((err) => { alert(err); });
100100
if (this.serverID);
101101
}
102102

103103
destroy() {
104104
// TODO
105105
Axios.post('http://127.0.0.1:5000/destroy/sample')
106-
.then(() => { });
106+
.then(() => { }).catch((err) => { alert(err); });
107107
if (this.serverID);
108108
}
109109

0 commit comments

Comments
 (0)