From a24816f76b513cea1078cd3511978686e5332bd0 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Sat, 20 Jun 2015 18:07:47 +0200 Subject: [PATCH] Handle null errors to support existing uses in tests --- src/atom.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/atom.coffee b/src/atom.coffee index 209a39e9c..f3bbafcc2 100644 --- a/src/atom.coffee +++ b/src/atom.coffee @@ -203,6 +203,7 @@ class Atom extends Model # TODO: These should be deprecated for 2.0 once we transition the # exception-reporting package to the new API. + error ?= {} error.url = url error.line = line error.column = column