home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added generic default error message to exit_err().
[plomrogue]
/
src
/
rexit.c
diff --git
a/src/rexit.c
b/src/rexit.c
index 73d740ba4bd8e8d4e55809758dc9b1d000818dea..ee71809a27cc671660aae218e2d4da8a3e31be7f 100644
(file)
--- a/
src/rexit.c
+++ b/
src/rexit.c
@@
-67,6
+67,10
@@
extern void exit_err(uint8_t err, struct World * world, char * msg)
return;
}
cleanup(world);
+ if (NULL == msg)
+ {
+ msg = "Some error encountered. Aborted.";
+ }
printf("%s\n", msg);
exit(EXIT_FAILURE);
}