Navigation Menu

Skip to content

Commit

Permalink
Support errno value in system call error message at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 10, 2015
1 parent e480338 commit 3b63d88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/grntest/test-runner.rb
Expand Up @@ -493,7 +493,8 @@ def normalize_path_in_error_message(content)
path = $2
post = $3
normalized_path = File.basename(path)
post = "" unless post.end_with?(")")
post = post.gsub(/\[\d+\]\z/, "[?]")
post = "" unless /[\)\]]\z/ =~ post
"#{pre}<#{normalized_path}>'#{post}"
else
content
Expand Down

0 comments on commit 3b63d88

Please sign in to comment.