Skip to content

Commit

Permalink
Merge pull request #310 from Circuitscape/RA/inc_err_mess
Browse files Browse the repository at this point in the history
Add better error message when include pairs file is incorrect
  • Loading branch information
ranjanan authored Aug 9, 2021
2 parents c235819 + e9dc604 commit 1a0194a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ function read_included_pairs(V, filename)
end

return IncludeExcludePairs(mode, point_ids, mat)
else
throw(ErrorException("Error reading focal node include/exclude pairs file. Please
check file format and refer to the tests for examples."))
end

end
Expand Down

0 comments on commit 1a0194a

Please sign in to comment.