A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add cases for missing enumeration values.
[simgrid.git]
/
src
/
xbt
/
ex.c
diff --git
a/src/xbt/ex.c
b/src/xbt/ex.c
index
4eb0569
..
3f333ce
100644
(file)
--- a/
src/xbt/ex.c
+++ b/
src/xbt/ex.c
@@
-211,24
+211,33
@@
const char *xbt_ex_catname(xbt_errcat_t cat)
{
switch (cat) {
case unknown_error:
- return "unknown
_er
r";
+ return "unknown
erro
r";
case arg_error:
- return "invalid_arg";
+ return "invalid argument";
+ case bound_error:
+ return "out of bounds";
case mismatch_error:
return "mismatch";
case not_found_error:
return "not found";
case system_error:
- return "system
_er
r";
+ return "system
erro
r";
case network_error:
- return "network
_er
r";
+ return "network
erro
r";
case timeout_error:
return "timeout";
+ case cancel_error:
+ return "action canceled";
case thread_error:
- return "thread_err";
- default:
- return "INVALID_ERR";
+ return "thread error";
+ case host_error:
+ return "host failed";
+ case tracing_error:
+ return "tracing error";
+ case io_error:
+ return "io error";
}
+ return "INVALID ERROR";
}