Skip to content

Commit

Permalink
Merge pull request #277 from hustf/fix_syntax_error
Browse files Browse the repository at this point in the history
Just a minor syntax thing which might cause small problems.
  • Loading branch information
cormullion authored Oct 13, 2023
2 parents 06a6d02 + 7660ddc commit 65e5e87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/text.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function get_fontsize()
font_size = sign(m.yy)*sqrt(m.yx^2+m.yy^2)
return font_size
else
throw(MethodError(get_fontsize, "Please use Cairo v1.0.5 or later to use this feature."))
throw(ErrorException("Please use Cairo v1.0.5 or later to use this feature."))
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/text-wrapping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function text_wrap_tests(fname)
@test received_fsize == fsize
catch
# should throw with Cairo < 1.0.5
@test_throws MethodError get_fontsize()
@test_throws ErrorException get_fontsize()
end
@layer begin
translate(pos)
Expand Down

0 comments on commit 65e5e87

Please sign in to comment.