Skip to content

Commit

Permalink
added better errormessage when there is a problem with a project.rb file
Browse files Browse the repository at this point in the history
include directory from which the failed command was executed
  • Loading branch information
marcmo committed Jul 7, 2011
1 parent e5a6e28 commit 9b51440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cxxproject/ext/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ def new_execute(execute_org, arg)
def handle_error(ex1)
# todo: debug log, no puts here!
if not Rake.application.idei.get_abort()
puts "Error for task: #{@name} #{ex1.message}"
puts "Error for task: #{@name} (execution from dir: #{Dir.pwd})"
puts "#{ex1.message} "
end
begin
FileUtils.rm(@name) if File.exists?(@name) # todo: error parsing?
Expand Down

0 comments on commit 9b51440

Please sign in to comment.