diff options
author | wl <wl> | 2011-03-18 01:05:59 +0000 |
---|---|---|
committer | wl <wl> | 2011-03-18 01:05:59 +0000 |
commit | 1196f952111994e35a5c22f1669d479a03366c14 (patch) | |
tree | 12651ef85f1b128c5cb3a3689e8b2aec989afabc /src | |
parent | 421215b09e3efaf7c76369162bf49ab99181c728 (diff) | |
download | groff-1196f952111994e35a5c22f1669d479a03366c14.tar.gz |
[troff] Improve error message.
* src/roff/troff/input.cc (token::delimiter): Improve error message.
Suggested by Doug McIlroy <doug@cs.dartmouth.edu>.
Diffstat (limited to 'src')
-rw-r--r-- | src/roff/troff/input.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp index 7a0f46ce..c28c0565 100644 --- a/src/roff/troff/input.cpp +++ b/src/roff/troff/input.cpp @@ -1,6 +1,5 @@ // -*- C++ -*- -/* Copyright (C) 1989, 1990, 1991, 1992, 2000, 2001, 2002, 2003, 2004, 2005, - 2006, 2007, 2008, 2009, 2010 +/* Copyright (C) 1989-1992, 2000-2011 Free Software Foundation, Inc. Written by James Clark (jjc@jclark.com) @@ -2356,6 +2355,10 @@ int token::delimiter(int err) return 1; } case TOKEN_NODE: + // the user doesn't know what a node is + if (err) + error("missing argument or invalid starting delimiter"); + return 0; case TOKEN_SPACE: case TOKEN_STRETCHABLE_SPACE: case TOKEN_UNSTRETCHABLE_SPACE: |