From e9dc604353760f32acf93b1130d1718e1f923231 Mon Sep 17 00:00:00 2001 From: Ranjan Anantharaman Date: Mon, 9 Aug 2021 12:12:36 -0400 Subject: [PATCH] Add better error message when include pairs file is incorrect --- src/io.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/io.jl b/src/io.jl index dd6ea8e..9a4d39f 100644 --- a/src/io.jl +++ b/src/io.jl @@ -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