lib/esbuild/build_state.rb in esbuild-0.1.0 vs lib/esbuild/build_state.rb in esbuild-0.1.1
- old
+ new
@@ -38,10 +38,10 @@
@on_rebuild.call(nil, result)
end
def response_to_result(res)
unless res["errors"].empty?
- raise BuildFailureError, res["errors"], res["warnings"]
+ raise BuildFailureError.new(res["errors"], res["warnings"])
end
if res["writeToStdout"]
$stdout.puts res["writeToStdout"].rstrip
end