Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy committed Jun 20, 2024
1 parent 6e01878 commit bdacbc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LAMMPS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ end
function LAMMPSError(lmp::LMP)
buf = zeros(UInt8, 100)
API.lammps_get_last_error_message(lmp, buf, length(buf))
LAMMPSException(String(buf))
LAMMPSError(String(buf))
end

function Base.showerror(io::IO, err::LAMMPSError)
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LMP(["-screen", "none"]) do lmp
@test LAMMPS.version(lmp) >= 0
command(lmp, "clear")

@test_throws ErrorException command(lmp, "nonsense")
@test_throws LAMMPS.LAMMPSError command(lmp, "nonsense")
end

@testset "Variables" begin
Expand Down

0 comments on commit bdacbc3

Please sign in to comment.