Skip to content

Commit

Permalink
Fix #387 even better
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Oct 11, 2017
1 parent 0a3bc9e commit f345cab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/canopy/history.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ let p = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @
let path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\canopy\failedContexts.txt"

let save (results : string list) =
if Directory.Exists(p) = false then Directory.CreateDirectory(p) |> ignore
use sw = new StreamWriter(path)
sw.Write (String.concat "|" results)
if configuration.runFailedContextsFirst = true then
if Directory.Exists(p) = false then Directory.CreateDirectory(p) |> ignore
use sw = new StreamWriter(path)
sw.Write (String.concat "|" results)

let get _ =
if File.Exists(path) = false then
Expand Down

0 comments on commit f345cab

Please sign in to comment.