From 37abe2ce0d0d4a11e907fd620e75f77de654d36d Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Thu, 29 Jun 2023 22:08:17 +0300 Subject: [PATCH] Code refactoring after #274 --- internal/api/README.md | 4 ++++ www/editor.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 internal/api/README.md diff --git a/internal/api/README.md b/internal/api/README.md new file mode 100644 index 00000000..4a7d08f1 --- /dev/null +++ b/internal/api/README.md @@ -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/ diff --git a/www/editor.html b/www/editor.html index a9f90f71..2a34492d 100644 --- a/www/editor.html +++ b/www/editor.html @@ -42,7 +42,7 @@ }).then(r => { if (r.ok) { alert('OK'); - fetch('api/exit?code=1', {method: 'POST'}); + fetch('api/exit?code=100', {method: 'POST'}); } else { r.text().then(alert); }