Skip to content

Commit

Permalink
Merge pull request #546 from JuliaReach/schillic/domainerror
Browse files Browse the repository at this point in the history
Fix empty error message in projection
  • Loading branch information
schillic authored Mar 16, 2019
2 parents 147f559 + ae87f9e commit 3d2c269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ReachSets/project_reach.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function project_reach(
else
got_time = false
if (xaxis <= 0 || xaxis > n)
throw(DomainError())
throw(DomainError("value $xaxis for X variable not allowed"))
end
end

Expand All @@ -48,7 +48,7 @@ function project_reach(
# projection to a state variable
yaxis = vars[2]
if (yaxis <= 0 || yaxis > n)
throw(DomainError())
throw(DomainError("value $yaxis for Y variable not allowed"))
end
projection_matrix = sparse([1, 2], [xaxis, yaxis], [1.0, 1.0], 2, m)
else
Expand Down

0 comments on commit 3d2c269

Please sign in to comment.