mirror of
https://github.com/lightbend/config.git
synced 2025-01-28 21:20:07 +08:00
improve error message on badly-formatted number
This commit is contained in:
parent
43337aa315
commit
da09c9790c
@ -253,7 +253,8 @@ final class Tokenizer {
|
||||
return Tokens.newLong(lineOrigin(), Long.parseLong(s));
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
throw parseError("Invalid number", e);
|
||||
throw parseError("Invalid number: '" + s
|
||||
+ "' (if this is in a path, try quoting it)", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user