signal-desktop/libtextsecure
Scott Nonnenberg 6464d0a5fa
Make errors more debuggable; capture correct stack, include name (#1944)
No more errors like this in the logs!

```
INFO  2018-01-05T18:33:15.942Z Message.saveErrors: null Error
    at file:///C:/Users/Test/AppData/Local/Programs/signal-desktop/resources/app.asar/js/libtextsecure.js:30:33
    at file:///C:/Users/Test/AppData/Local/Programs/signal-desktop/resources/app.asar/js/libtextsecure.js:138:3
    at file:///C:/Users/Test/AppData/Local/Programs/signal-desktop/resources/app.asar/js/libtextsecure.js:40718:3
```

It has no information in the title, and then the callstack points to
the `new Error()` line in the old `errors.js`.

This change will include the actual error name and message details in
the stack, and will include the original http error stack as well if
provided.
2018-01-08 11:08:25 -08:00
..
storage Cache messages on receipt, remove from cache when processed 2017-08-04 12:03:25 -07:00
test Make errors more debuggable; capture correct stack, include name (#1944) 2018-01-08 11:08:25 -08:00
account_manager.js Save prekeys optimistically, track confirms, new clean behavior (#1846) 2017-12-01 13:35:39 -08:00
api.js Support pass-through proxies with HTTPS_PROXY env var (#1878) 2017-12-08 10:38:01 -08:00
components.js Update autosize, which should fix stack overflow error (#1560) 2017-10-13 11:44:35 -07:00
contacts_parser.js Profiles (#1453) 2017-09-14 17:04:00 -07:00
crypto.js Profiles (#1453) 2017-09-14 17:04:00 -07:00
errors.js Make errors more debuggable; capture correct stack, include name (#1944) 2018-01-08 11:08:25 -08:00
event_target.js Animated loading screens on startup and first conversation load 2017-08-04 12:03:25 -07:00
helpers.js Move, rename, and simplify toArrayBuffer helper 2016-03-13 04:56:28 -07:00
key_worker.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
libsignal-protocol.js Proper session reset: Delete sessions before and after (#1796) 2017-11-21 15:20:07 -08:00
message_receiver.js NullMessage sent before verification sync should not be silent (#1857) 2017-12-04 15:28:38 -08:00
outgoing_message.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
protobufs.js Protobufs: More logging on failure to load protobufs, fix tests 2017-09-14 17:02:45 -07:00
protocol_wrapper.js Update libsignal-protocol v0.9.0 2016-05-17 12:03:37 -07:00
ProvisioningCipher.js Feature: Blue check marks for read messages if opted in (#1489) 2017-10-04 15:28:43 -07:00
sendmessage.js NullMessage sent before verification sync should not be silent (#1857) 2017-12-04 15:28:38 -08:00
storage.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
stringview.js Remove erroneous license file and headers 2015-09-07 14:58:42 -07:00
sync_request.js Add logging to help track down problems with Sync 2017-08-17 17:33:22 -07:00
task_with_timeout.js createTaskWithTimeout: Don't log expiration if task threw (#1412) 2017-08-30 13:33:55 -07:00
websocket-resources.js Better handling of online/offline behavior, socket shutdown (#1593) 2017-10-23 14:38:43 -07:00