Errors are nice to report
This commit is contained in:
parent
130b29605c
commit
b7c3bcd81f
1 changed files with 12 additions and 0 deletions
|
@ -99,14 +99,26 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((can_if = hexagram_can_if_open(argv[1])) == NULL) {
|
if ((can_if = hexagram_can_if_open(argv[1])) == NULL) {
|
||||||
|
perror("hexagram_can_if_open()");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((window = hexagram_window_new_x11(NULL, width, height)) == NULL) {
|
if ((window = hexagram_window_new_x11(NULL, width, height)) == NULL) {
|
||||||
|
perror("hexagram_window_new_x11()");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((cluster = hexagram_cluster_new(width, height)) == NULL) {
|
if ((cluster = hexagram_cluster_new(width, height)) == NULL) {
|
||||||
|
perror("hexagram_cluster_new()");
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hexagram_cluster_filter_can_if(can_if) < 0) {
|
||||||
|
perror("hexagram_cluster_filter_can_if()");
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue