Jakob Ackermann
ee70dc4a19
Merge pull request #9625 from overleaf/jpa-logging-no-stack
...
[o-error] fallback from err.stack to err.message then '(no stack)'
GitOrigin-RevId: 2b5e8af5791d92e618336a201f8c66ba23c8d46d
2022-09-16 08:03:56 +00:00
Jakob Ackermann
4b308553be
Merge pull request #6120 from overleaf/jpa-same-linting-packages
...
[misc] move the linting setup to the root of the monorepo
GitOrigin-RevId: 1633e2a58598add0b727738cd3bfba0ab7bae781
2021-12-17 09:03:06 +00:00
Jakob Ackermann
a5e5d9b1cd
[OError] getFullInfo returns the error context of nested causes ( #14 )
...
* [OError] add getFullInfoIncludeCause for retrieving nested cause info
* Revert "[OError] add getFullInfoIncludeCause for retrieving nested cause info"
This reverts commit 4c7517255a0f37ba94223e559a3926f19bab618d
* [OError] getFullInfo returns the error context of nested causes
* [OError] getFullInfo flip sequence of merging, add test case for it
2020-12-02 11:44:17 +00:00
John Lees-Miller
258cc08717
Add a limit on the number of tags, OError.maxTags ( #13 )
...
* Add OError.maxTags
* Tidy up package scripts and add a build script
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com >
2020-09-17 15:17:44 +01:00
John Lees-Miller
ea2d76de51
Improve tagging for a (maybe) null error ( #12 )
...
* Document a way of handling an error that might be null
* Make typecheck strict
* Test some edge cases
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
2020-09-11 10:05:54 +01:00
John Lees-Miller
4b0060f0b1
Remove HTTPErrors from v3
2020-05-15 10:45:08 +01:00
John Lees-Miller
8af22ae878
Improve assertion messages in test utility
2020-05-15 10:32:18 +01:00
John Lees-Miller
09cd72d51c
Rework to favor tagging over wrapping
2020-04-29 21:08:58 +01:00
John Lees-Miller
1a38f4e4ff
Add typescript for type checking
2020-04-29 21:03:41 +01:00
John Lees-Miller
c46075aaab
Make constructor take only message and info
2020-04-17 15:45:08 +01:00
John Lees-Miller
c000bdc43c
Add standard and fix complaints
2020-04-17 10:59:27 +01:00
John Lees-Miller
4b903626b4
Apply linting rules
2020-04-17 09:14:35 +01:00
John Lees-Miller
59156ec89e
Fix incorrect expect
2020-01-27 10:45:31 +00:00
Tim Alby
9229c9b3a9
add common HTTP errors
2019-07-29 18:25:31 +02:00
John Lees-Miller
79804a8e2f
Remove unreachable code
2019-07-08 11:57:28 +01:00
John Lees-Miller
96ab30883a
Remove ES5 interface
2019-07-08 11:52:59 +01:00
Tim Alby
d63812c557
update tests
2019-07-05 18:55:53 +02:00
Tim Alby
7bb8a5bd11
handle custom errors created without info
2019-07-04 10:38:56 +02:00
John Lees-Miller
ed7dc939ac
Add support for errors with ES6 classes
2019-07-01 11:34:15 +01:00
James Allen
a94b34f37f
Initial commit of stand-alone module
2018-03-07 16:42:39 +00:00