Fix an out-of-bound array access.
[master-thesis.git] / Parasitemia / Parasitemia / Program.fs
index f23cd39..d7348cf 100644 (file)
@@ -115,7 +115,7 @@ let main args =
                     let total, infected = Utils.countCells cells
                     fprintf resultFile "File: %s %d %d %.2f\n" file total infected (100. * (float infected) / (float total))
                 with
-                | _ as ex -> Utils.log (sprintf "Unable to open the image '%A': %A" file ex)
+                | :? IOException as ex -> Utils.log (sprintf "Unable to open the image '%A': %A" file ex)
             0
 
         | Window ->