aboutsummaryrefslogtreecommitdiff
path: root/client/errcatch.c
blob: 5e39b00a95561928b1278988d2c2193235ae16df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "../shared/errcatch.h"

void w2_errcatch_handle_error(w2_s_error *error) {
	// TODO: handle more error types
	switch (error->code) {
		case W2_E_WARN_UNCAUGHT_ERROR: {
			break;
		}
		default: {
			g_w2_error_uncaught = true;
#ifdef W2_SIM
			simwarn("Uncaught/unhandled error found with code 0x%02x\n", error->code);
#endif
		}
	}

	return;
}