Skip to content

Commit 868dc7a

Browse files
committed
Fix parse_xyz()
1 parent 649fad9 commit 868dc7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/molecule.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function parse_xyz(xyztext::String)::Molecule
8585
push!(coordinates, coordinate)
8686
push!(Zvalues, Zvalue)
8787
else
88-
throw("The line \"$line\" does not match expected format.")
88+
throw(ErrorException("The line \"$line\" does not match expected format."))
8989
end
9090
end
9191
coordinates = mapreduce(permutedims, vcat, coordinates)

0 commit comments

Comments
 (0)