Skip to content

Commit 33dd2a1

Browse files
fixing deprecation warning
1 parent 7c18d85 commit 33dd2a1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Changelog.md renamed to CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [2.0.1] - 2021-07-16
10+
### Changed
11+
- using `Base.catch_backtrace()` now instead of `Base.catch_stack()` which got deprecated
12+
913
## [2.0.0] - 2021-07-15
1014
### Added
1115
- `Base.get` and `Base.getindex` are now both implemented for `Const` (like they are implemented already for `Identity`), to simplify working with `Const`.

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DataTypesBasic"
22
uuid = "83eed652-29e8-11e9-12da-a7c29d64ffc9"
33
authors = ["Sahm Stephan <[email protected]>"]
4-
version = "2.0.0"
4+
version = "2.0.1"
55

66
[deps]
77
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"

src/Try.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ macro Try(expr)
119119
r = $(esc(expr))
120120
Identity(r)
121121
catch exc
122-
Const(Thrown(exc, Base.catch_stack()))
122+
Const(Thrown(exc, Base.catch_backtrace()))
123123
end
124124
end
125125
end

0 commit comments

Comments
 (0)