Skip to content

Commit

Permalink
format errors better
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylightsmith committed Jan 27, 2009
1 parent 96e7412 commit d58bbd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/projects/_project.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<% if latest_build.brief_error %>
<div><%= link_to latest_build.brief_error, {:action => 'show', :id => project.name}, {:class => "failed"} %></div>
<% end %>
<div class="error_message"><%= project.builder_error_message %></div>
<div class="error_message"><%= simple_format(project.builder_error_message) %></div>
<% end %>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion lib/source_control/abstract_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def execute_with_error_log(command, error_log)
ensure
FileUtils.rm_f(error_log)
end
raise BuilderError.new("Error when executing command:\n#{command}\n\nwas:\n#{error_message}", "source_control_error") unless error_message.empty?
raise BuilderError.new("Error when executing command:#{command.inspect} was:\n#{error_message}", "source_control_error") unless error_message.empty?
return stdout_output
end
end
Expand Down

0 comments on commit d58bbd1

Please sign in to comment.