From 36bb80d336c079e60bc685599ac9bbd4e6b5dce9 Mon Sep 17 00:00:00 2001 From: Jie Date: Mon, 1 Jul 2024 07:47:26 +0800 Subject: [PATCH] Update exercises/concept/rpn-calculator/.meta/exemplar.ex Co-authored-by: Angelika Tyborska --- exercises/concept/rpn-calculator/.meta/exemplar.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/rpn-calculator/.meta/exemplar.ex b/exercises/concept/rpn-calculator/.meta/exemplar.ex index 85c210548..1a3765058 100644 --- a/exercises/concept/rpn-calculator/.meta/exemplar.ex +++ b/exercises/concept/rpn-calculator/.meta/exemplar.ex @@ -15,7 +15,7 @@ defmodule RPNCalculator do try do {:ok, operation.(stack)} rescue - e -> {:error, Exception.message(e)} + e in ArgumentError -> {:error, e.message} end end end