lib/webpack_rails/task.rb in webpack_rails-1.3.0 vs lib/webpack_rails/task.rb in webpack_rails-1.3.1
- old
+ new
@@ -7,9 +7,11 @@
# wraps NodeTask::Error
class Error < StandardError
def initialize(node_task_error)
super(node_task_error.to_s)
+ js_error = node_task_error.js_error
+
set_backtrace(js_error[:stack].split('\n')) if js_error
end
end
class << self