summaryrefslogtreecommitdiff
path: root/client/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-06 20:48:20 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-06 20:48:20 +0200
commitfedc13d6564dcf110ba3b7faca3c34a28c7905cb (patch)
tree422a499d46e5e63618201054218300e04ed134fe /client/setup.c
parentae8beb20a2a837824cfda4d748fbe07b26a161f0 (diff)
error logging working
Diffstat (limited to 'client/setup.c')
-rw-r--r--client/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/setup.c b/client/setup.c
index e51965f..41a987d 100644
--- a/client/setup.c
+++ b/client/setup.c
@@ -10,6 +10,8 @@
#include "strings.h"
#include "ui.h"
+#include "errcatch.h"
+
// pointers for endianness check
static const uint16_t _test = 1;
static const uint8_t *_ptest = (uint8_t *)&_test;
@@ -47,6 +49,8 @@ void w2_client_setup(int argc, char **argv) {
g_w2_ui_pad_body = newpad(g_w2_ui_height - 5, g_w2_ui_width);
scrollok(g_w2_ui_pad_body, true);
+ w2_errcatch_throw(W2_E_CRIT_COM_UNAVAILABLE);
+
// check endianness
g_w2_endianness = *_ptest;
}