[Webfunds-commits] java/webfunds/ricardian Contract.java
Ian Grigg
iang@cypherpunks.ai
Mon, 21 Aug 2000 14:10:48 -0400 (AST)
iang 00/08/21 14:10:48
Modified: webfunds/ricardian Contract.java
Log:
moved name change inside 'if' so error messages reported correct fieldname
Revision Changes Path
1.35 +3 -1 java/webfunds/ricardian/Contract.java
Index: Contract.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/Contract.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- Contract.java 2000/08/21 14:13:38 1.34
+++ Contract.java 2000/08/21 18:10:47 1.35
@@ -1,4 +1,4 @@
-/* $Id: Contract.java,v 1.34 2000/08/21 14:13:38 iang Exp $
+/* $Id: Contract.java,v 1.35 2000/08/21 18:10:47 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -764,9 +764,11 @@
// deprecate this with the DigiGold.asc V1.3 contract
String text = getField("keys", fieldName);
//logmsg("ok, got " + text + " from " + fieldName);
- fieldName = "servercertifiation"; // missing _, speeling mistake
if (text == null || text.length() == 0)
+ {
+ fieldName = "servercertifiation"; // missing _, speeling mistake
text = getField("keys", fieldName);
+ }
//logmsg("now got " + text + " from " + FS2);
if (text == null || text.length() == 0)
throw new ContractException(ContractException.KEY_SERVER,