summaryrefslogtreecommitdiff
path: root/src/query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/query.c b/src/query.c
index f0b9014..2276ac1 100644
--- a/src/query.c
+++ b/src/query.c
@@ -64,7 +64,8 @@ int handle_request(struct nodeid* self, struct tokens *tokens, time_t now, const
bcur_next(&bcursor, 1);
break;
case -BENC_EBADP:
- fatal("Bad dict");
+ err("Bad query: Bad Dictionary");
+ return QUERY_EBADQ;
}
}
@@ -135,7 +136,8 @@ int handle_request(struct nodeid* self, struct tokens *tokens, time_t now, const
bcur_next(&bcursor, 1);
break;
case -BENC_EBADP:
- fatal("Bad dict");
+ err("Bad query: Bad Dictionary");
+ return QUERY_EBADQ;
}
}
@@ -233,7 +235,8 @@ int handle_request(struct nodeid* self, struct tokens *tokens, time_t now, const
bcur_next(&bcursor, 1);
break;
case -BENC_EBADP:
- fatal("Bad dict");
+ err("Bad query: Bad Dictionary");
+ return QUERY_EBADQ;
}
}
@@ -443,7 +446,8 @@ int handle_request(struct nodeid* self, struct tokens *tokens, time_t now, const
bcur_next(&bcursor, 1);
break;
case -BENC_EBADP:
- fatal("Bad dict");
+ err("Bad query: Bad Dictionary");
+ return QUERY_EBADQ;
}
}