瀏覽代碼

fix error handling

theenglishway (time) 4 年之前
父節點
當前提交
463bc06505
共有 1 個文件被更改,包括 1 次插入0 次删除
  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