Skip to content

Commit

Permalink
Fix site.map generation if no routes were detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof-Cieslak committed Jul 5, 2018
1 parent 832643f commit ee03b96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Saturn/Diagnostics.fs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ module SiteMap =

let add hm = state.Add(hm)
let generate () =
let s = state |> Seq.last
match state |> Seq.tryLast with
| None -> ()
| Some s ->
let z = s.CollectPaths "" None state
let typ = typeof<HandlerMap>
let asm = typ.Assembly.Location
Expand Down

0 comments on commit ee03b96

Please sign in to comment.