Skip to content

Commit

Permalink
Wrap strings in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
adilbaig committed Feb 19, 2015
1 parent e34c0f2 commit 7416a1a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/console.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ void main()

if(cmd.length > 0)
try{
auto resp = redis.send(cmd);
writeln(resp.toDiagnosticString());

Response resp = redis.send(cmd);
if (resp.isString) {
writeln('"', resp.toDiagnosticString(), '"');
} else {
writeln(resp.toDiagnosticString());
}
}
catch(RedisResponseException e) {
writeln("(error) ", e.msg);
Expand Down

0 comments on commit 7416a1a

Please sign in to comment.