Skip to content

Commit

Permalink
use raising validate function in viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
vacarsu committed Dec 14, 2021
1 parent 6b42c6a commit d4cb559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/scenic/view_port.ex
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ defmodule Scenic.ViewPort do
def set_theme(viewport, theme)

def set_theme(%ViewPort{pid: pid}, theme) do
case Themes.validate(theme) do
case Themes.validate!(theme) do
# {:ok, theme} -> GenServer.cast( pid, {:set_theme, theme} )
{:ok, theme} -> GenServer.call(pid, {:set_theme, theme})
err -> err
Expand Down

0 comments on commit d4cb559

Please sign in to comment.