From: <cr...@us...> - 2008-07-29 13:59:17
|
Revision: 4367 http://jnode.svn.sourceforge.net/jnode/?rev=4367&view=rev Author: crawley Date: 2008-07-29 13:59:14 +0000 (Tue, 29 Jul 2008) Log Message: ----------- More error message tidyups Modified Paths: -------------- trunk/fs/src/fs/org/jnode/partitions/command/IBMPartitionTypeArgument.java trunk/net/src/net/org/jnode/net/syntax/IPv4AddressArgument.java trunk/net/src/net/org/jnode/net/syntax/IPv4HostArgument.java trunk/shell/src/shell/org/jnode/shell/syntax/OptionSetSyntax.java Modified: trunk/fs/src/fs/org/jnode/partitions/command/IBMPartitionTypeArgument.java =================================================================== --- trunk/fs/src/fs/org/jnode/partitions/command/IBMPartitionTypeArgument.java 2008-07-29 13:44:58 UTC (rev 4366) +++ trunk/fs/src/fs/org/jnode/partitions/command/IBMPartitionTypeArgument.java 2008-07-29 13:59:14 UTC (rev 4367) @@ -43,7 +43,7 @@ int code = Integer.parseInt(value.token, 16); return IBMPartitionTypes.valueOf(code); } catch (NumberFormatException ex) { - throw new CommandSyntaxException("Not a valid hexadecimal number"); + throw new CommandSyntaxException("not a valid hexadecimal number"); } catch (IllegalArgumentException ex) { throw new CommandSyntaxException(ex.getMessage()); } Modified: trunk/net/src/net/org/jnode/net/syntax/IPv4AddressArgument.java =================================================================== --- trunk/net/src/net/org/jnode/net/syntax/IPv4AddressArgument.java 2008-07-29 13:44:58 UTC (rev 4366) +++ trunk/net/src/net/org/jnode/net/syntax/IPv4AddressArgument.java 2008-07-29 13:59:14 UTC (rev 4367) @@ -31,7 +31,7 @@ } final StringTokenizer tok = new StringTokenizer(value.token, "."); if (tok.countTokens() != 4) { - throw new CommandSyntaxException("Wrong number of components for an IPv4 address"); + throw new CommandSyntaxException("wrong number of components for an IPv4 address"); } try { final byte b1 = parseUnsignedByte(tok.nextToken()); @@ -40,7 +40,7 @@ final byte b4 = parseUnsignedByte(tok.nextToken()); return new IPv4Address(new byte[]{b1, b2, b3, b4}, 0); } catch (NumberFormatException ex) { - throw new CommandSyntaxException("Invalid component in IPv4 address"); + throw new CommandSyntaxException("invalid component in IPv4 address"); } } Modified: trunk/net/src/net/org/jnode/net/syntax/IPv4HostArgument.java =================================================================== --- trunk/net/src/net/org/jnode/net/syntax/IPv4HostArgument.java 2008-07-29 13:44:58 UTC (rev 4366) +++ trunk/net/src/net/org/jnode/net/syntax/IPv4HostArgument.java 2008-07-29 13:59:14 UTC (rev 4367) @@ -27,7 +27,7 @@ try { return new IPv4Address(value.token); } catch (IllegalArgumentException ex) { - throw new CommandSyntaxException("Inval;id hostname or IPv4 address"); + throw new CommandSyntaxException("invalid hostname or IPv4 address"); } } } Modified: trunk/shell/src/shell/org/jnode/shell/syntax/OptionSetSyntax.java =================================================================== --- trunk/shell/src/shell/org/jnode/shell/syntax/OptionSetSyntax.java 2008-07-29 13:44:58 UTC (rev 4366) +++ trunk/shell/src/shell/org/jnode/shell/syntax/OptionSetSyntax.java 2008-07-29 13:59:14 UTC (rev 4367) @@ -58,7 +58,7 @@ String value = token.token; int len = value.length(); if (len < 2 || value.charAt(0) != '-') { - throw new CommandSyntaxException("'" + value + "' is not a flag set"); + throw new CommandSyntaxException("not a flag set"); } for (int i = 1; i < len; i++) { char ch = value.charAt(i); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |