Gaston: change @assert to @error
This commit is contained in:
parent
9e3ff15522
commit
e2907b973f
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user