make error return 1 instead of aborting, as abort is rather cruel

This commit is contained in:
2025-06-13 01:22:42 +02:00
parent c3bb0621c3
commit 9975aec7eb

View File

@@ -13,5 +13,5 @@
#define fatal(s, ...) \ #define fatal(s, ...) \
do { \ do { \
printf("\033[101m" __FILE__ ":" ERROR_STR(__LINE__) ": [FAT]: " s "\033[0m\n", ##__VA_ARGS__); \ printf("\033[101m" __FILE__ ":" ERROR_STR(__LINE__) ": [FAT]: " s "\033[0m\n", ##__VA_ARGS__); \
abort(); \ exit(1); \
} while (0) } while (0)