Skip to content

Commit

Permalink
Remove debug issues
Browse files Browse the repository at this point in the history
  • Loading branch information
teliosdev committed May 4, 2014
1 parent daf0901 commit a4018ec
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 338 deletions.
4 changes: 2 additions & 2 deletions lib/liquidscript/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def syntax(*files)

def perform_compiliation(file, out)
open_files(file, out) do |infile, outfile|
out = Liquidscript.compile(infile.read, :file => file, :ast => true)
out = Liquidscript.compile(infile.read, :file => file)
outfile.write(out)
end
end
Expand Down Expand Up @@ -77,7 +77,7 @@ def open_files(inf, outf = nil)
yield inf, outf
rescue StandardError => e
$stderr.puts "ERROR: #{e.class}: #{e.message}"
$stderr.puts e.backtrace[0..30].map { |s| "\t" +
$stderr.puts e.backtrace[0..5].map { |s| "\t" +
s.gsub(/^lib\/liquidscript\//, "") }.join("\n")
false
ensure
Expand Down
Loading

0 comments on commit a4018ec

Please sign in to comment.