# Print errors untruncated and full precision

**URL:** <https://discourse.julialang.org/t/print-errors-untruncated-and-full-precision/90358>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 16, 2022, 3:45pm UTC](https://discourse.julialang.org/t/print-errors-untruncated-and-full-precision/90358 "2022-11-16T15:45:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [November 16, 2022, 3:45pm UTC](https://discourse.julialang.org/t/print-errors-untruncated-and-full-precision/90358/1 "2022-11-16T15:45:20Z")

</div>

For a error thrown in some source location outside my control, is it possible to print the error object with **full precision, untruncated** , so that I can save the values from the REPL?

MWE:

```julia
julia> throw(DomainError(rand(100), "this is the problematic value"))
ERROR: DomainError with [0.885351, 0.310459, 0.494661, 0.470009, 0.52826, 0.0770669, 0.557097, 0.912992, 0.583488, 0.892067 … 0.873031, 0.357821, 0.0771776, 0.57399, 0.435096, 0.443316, 0.191378, 0.301983, 0.0455148, 0.515448]:
this is the problematic value

```

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [November 16, 2022, 4:24pm UTC](https://discourse.julialang.org/t/print-errors-untruncated-and-full-precision/90358/2 "2022-11-16T16:24:18Z")

</div>

Can you catch the error?

```julia
julia> try
           throw(DomainError(rand(100), "this is the problematic value"))
       catch e
           e.val
       end
100-element Vector{Float64}:
 0.5348390850487531
 0.9639789979150846
 0.9928589887556779
 ⋮

```
