Gaston: change @assert to @error

This commit is contained in:
t-bltg 2021-07-28 17:17:44 +02:00 committed by GitHub
parent 9e3ff15522
commit e2907b973f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,9 @@ function _before_layout_calcs(plt::Plot{GastonBackend})
plt.o.subplots = G.SubPlot[] plt.o.subplots = G.SubPlot[]
n, sps = gaston_get_subplots(plt, 0, plt.layout) n, sps = gaston_get_subplots(plt, 0, plt.layout)
@assert n == length(plt.subplots) if n != length(plt.subplots)
@error "Gaston: $n != $(length(plt.subplots))"
end
# FIXME: find a way to support nested layouts # FIXME: find a way to support nested layouts
# e.g. figures spanning multiple rows/cols # e.g. figures spanning multiple rows/cols