diff options
author | Thomas White <taw@physics.org> | 2024-01-19 14:16:27 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-02-06 16:59:35 +0100 |
commit | be377e728148605328d816516d0039b42efc214d (patch) | |
tree | a9f42dffc5522af5cbe06082caf88f722b6021f5 /julia | |
parent | 4e8625a7fd1a4a5b1c150cd388adae36757c1747 (diff) |
Julia: Crystal: Complain when requesting unrecognised field
Diffstat (limited to 'julia')
-rw-r--r-- | julia/CrystFEL/src/crystal.jl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/julia/CrystFEL/src/crystal.jl b/julia/CrystFEL/src/crystal.jl index 38204a62..75124789 100644 --- a/julia/CrystFEL/src/crystal.jl +++ b/julia/CrystFEL/src/crystal.jl @@ -86,6 +86,8 @@ function Base.getproperty(cr::Crystal, name::Symbol) getfield(cr, :internalptr) elseif name === :cell return getcell(cr) + else + throw(ErrorException("Type Crystal has no field "*String(name))) end end |