Explorar o código

fix error handling

theenglishway (time) %!s(int64=4) %!d(string=hai) anos
pai
achega
463bc06505
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/vaccins/location_store.ex

+ 1 - 0
lib/vaccins/location_store.ex

@@ -107,6 +107,7 @@ defmodule Vaccins.LocationStore do
       :ok
     else
       false -> cs |> add_error(:name, "error on insertion", []) |> apply_action(:insert)
+      e = {:error, _} -> e
     end
   end
 end