~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
32a1e1e
)
cgi: more graceful error handling in absence of server
author
rjk@greenend.org.uk
<>
Fri, 28 Dec 2007 16:13:46 +0000
(16:13 +0000)
committer
rjk@greenend.org.uk
<>
Fri, 28 Dec 2007 16:13:46 +0000
(16:13 +0000)
lib/client.c
patch
|
blob
|
blame
|
history
tests/cookie.py
patch
|
blob
|
blame
|
history
diff --git
a/lib/client.c
b/lib/client.c
index
dc1d44e
..
1dac922
100644
(file)
--- a/
lib/client.c
+++ b/
lib/client.c
@@
-165,6
+165,10
@@
static int disorder_simple_v(disorder_client *c,
const char *arg;
struct dynstr d;
+ if(!c->fpout) {
+ error(0, "not connected to server");
+ return -1;
+ }
if(cmd) {
dynstr_init(&d);
dynstr_append_string(&d, cmd);
diff --git
a/tests/cookie.py
b/tests/cookie.py
index
c0b71e0
..
8a91829
100755
(executable)
--- a/
tests/cookie.py
+++ b/
tests/cookie.py
@@
-29,6
+29,7
@@
def test():
v = c.version()
print " getting cookie"
k = c.make_cookie()
+ print " cookie value is %s" % k
print " connecting with cookie"
c = disorder.client()
c.connect(k)