Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix empty error message in projection #546

Merged
merged 1 commit into from
Mar 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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