Skip to content

Commit d4cb559

Browse files
committed
use raising validate function in viewport
1 parent 6b42c6a commit d4cb559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scenic/view_port.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ defmodule Scenic.ViewPort do
395395
def set_theme(viewport, theme)
396396

397397
def set_theme(%ViewPort{pid: pid}, theme) do
398-
case Themes.validate(theme) do
398+
case Themes.validate!(theme) do
399399
# {:ok, theme} -> GenServer.cast( pid, {:set_theme, theme} )
400400
{:ok, theme} -> GenServer.call(pid, {:set_theme, theme})
401401
err -> err

0 commit comments

Comments
 (0)