From 7cba5372c63fdbf25e9a7005ec6032caa8bd7073 Mon Sep 17 00:00:00 2001 From: Cameron Kurth Date: Mon, 8 Jan 2024 12:12:24 -0600 Subject: [PATCH] Pass message string to `raise` instead of error tuple --- lib/zendesk/client/streamable.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zendesk/client/streamable.ex b/lib/zendesk/client/streamable.ex index d3642e4..68e5afd 100644 --- a/lib/zendesk/client/streamable.ex +++ b/lib/zendesk/client/streamable.ex @@ -41,8 +41,8 @@ defmodule Zendesk.Client.Streamable do {:ok, result, stream} -> {result, stream} - err -> - raise RuntimeError, message: err + {:error, message} -> + raise RuntimeError, message: message end end end