mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:35:46 +01:00
make error return 1 instead of aborting, as abort is rather cruel
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user