aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/lex/rust-token.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/lex/rust-token.cc')
-rw-r--r--gcc/rust/lex/rust-token.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/lex/rust-token.cc b/gcc/rust/lex/rust-token.cc
index abaa71b..7b5a305 100644
--- a/gcc/rust/lex/rust-token.cc
+++ b/gcc/rust/lex/rust-token.cc
@@ -123,8 +123,8 @@ Token::get_str () const
if (str == NULL)
{
rust_error_at (get_locus (),
- "attempted to get string for '%s', which has no string. "
- "returning empty string instead.",
+ "attempted to get string for %<%s%>, which has no string. "
+ "returning empty string instead",
get_token_description ());
return empty;
}