Trim trailing newline from exception message.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rPHUc3d285a9f74b: Minor improvement to XHPASTSyntaxErrorException message
Before
> ./scripts/phutil_symbols.php test.php
{
"error" : "XHPAST Parse Error: syntax error, unexpected $end, expecting T_FUNCTION on line 4\n",
"line" : "4",
"file" : "\/home\/joshua\/workspace\/github.com\/phacility\/libphutil\/foo.php"
}After
> ./scripts/phutil_symbols.php test.php
{
"error" : "XHPAST Parse Error: syntax error, unexpected $end, expecting T_FUNCTION on line 4",
"line" : "4",
"file" : "\/home\/joshua\/workspace\/github.com\/phacility\/libphutil\/foo.php"
}Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Lint
Lint Skipped - Unit
Tests Skipped