[Commit] rrserver dispatch.5c,1.20,1.21 games.5c,1.18,1.19
Keith Packard
commit at keithp.com
Thu Jun 5 17:49:58 PDT 2003
- Previous message: [Commit]
rrclient rrclient.c,NONE,1.1 .cvsignore,1.2,1.3 Makefile,1.2,1.3
- Next message: [Commit] nickle compile.c,1.137,1.138 execute.c,1.79,1.80
nickle.h,1.100,1.101 opcode.h,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: keithp
Update of /local/src/CVS/rrserver
In directory home.keithp.com:/tmp/cvs-serv32468
Modified Files:
dispatch.5c games.5c
Log Message:
Just use Error.NOGAME exception from Games::find instead of chaining exceptions uselessly
Index: dispatch.5c
===================================================================
RCS file: /local/src/CVS/rrserver/dispatch.5c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- dispatch.5c 5 Jun 2003 15:09:11 -0000 1.20
+++ dispatch.5c 5 Jun 2003 23:49:56 -0000 1.21
@@ -584,8 +584,6 @@
}
if (i == dim(commands))
raise rr_error (Error.COMMAND);
- } catch Games::no_such_game (string name) {
- raise rr_error (Error.NOGAME);
} catch rr_error (Error e) {
respond ("ERROR %E\n", e);
} catch closed () {
Index: games.5c
===================================================================
RCS file: /local/src/CVS/rrserver/games.5c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- games.5c 3 Jun 2003 08:02:54 -0000 1.18
+++ games.5c 5 Jun 2003 23:49:56 -0000 1.19
@@ -33,9 +33,6 @@
/* array of all games */
public (&Game)[0] games = {};
- /* raised when attempting to find a nonexistant game */
- public exception no_such_game (string name);
-
&Game insert () {
return Array::append (&games, reference ((Game) {}));
}
@@ -85,7 +82,7 @@
} catch found (&Game g) {
return &g;
}
- raise no_such_game (name);
+ raise rr_error (Error.NOGAME);
}
/* list clients associated with a game */
- Previous message: [Commit]
rrclient rrclient.c,NONE,1.1 .cvsignore,1.2,1.3 Makefile,1.2,1.3
- Next message: [Commit] nickle compile.c,1.137,1.138 execute.c,1.79,1.80
nickle.h,1.100,1.101 opcode.h,1.23,1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commit
mailing list