Code refactoring after #274
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
## Exit codes
|
||||||
|
|
||||||
|
- https://tldp.org/LDP/abs/html/exitcodes.html
|
||||||
|
- https://komodor.com/learn/exit-codes-in-containers-and-kubernetes-the-complete-guide/
|
||||||
+1
-1
@@ -42,7 +42,7 @@
|
|||||||
}).then(r => {
|
}).then(r => {
|
||||||
if (r.ok) {
|
if (r.ok) {
|
||||||
alert('OK');
|
alert('OK');
|
||||||
fetch('api/exit?code=1', {method: 'POST'});
|
fetch('api/exit?code=100', {method: 'POST'});
|
||||||
} else {
|
} else {
|
||||||
r.text().then(alert);
|
r.text().then(alert);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user