Skip to content

Commit

Permalink
Print build output to STDOUT (#193)
Browse files Browse the repository at this point in the history

* Use Process::Redirect::Inherit
  • Loading branch information
faustinoaq authored and ysbaddaden committed Jun 5, 2018
1 parent 3d3a24c commit 83eab9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/build.cr
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Shards
Shards.logger.debug "crystal #{args.join(' ')}"

error = IO::Memory.new
status = Process.run("crystal", args: args, output: error, error: error)
status = Process.run("crystal", args: args, output: Process::Redirect::Inherit, error: error)
raise Error.new("Error target #{target.name} failed to compile:\n#{error}") unless status.success?
end
end
Expand Down

0 comments on commit 83eab9a

Please sign in to comment.