From 897978eae42d1e5dfe88f582cc81473014b42b85 Mon Sep 17 00:00:00 2001 From: Valentin Waeselynck Date: Tue, 2 Oct 2018 09:26:08 +0200 Subject: [PATCH] Wrapped Throwable in validate-ep-identifier with reader conditional --- CHANGELOG.md | 2 ++ src/sc/impl.cljc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 350c05d..ec06bef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). ## [Unreleased] +### Fixed +- Wrapped Throwable in validate-ep-identifier with reader conditional ## 0.3.0 - 2018-07-18 ### Fixed diff --git a/src/sc/impl.cljc b/src/sc/impl.cljc index 2d9df7e..bb83f90 100644 --- a/src/sc/impl.cljc +++ b/src/sc/impl.cljc @@ -49,7 +49,7 @@ "ep-id should be either a positive number or a [(positive-number) (negative-number)] tuple, got: " (try (pr-str ep-id) - (catch Throwable err + (catch #?(:clj Throwable :cljs :default) err "(failed to print)"))) {:sc.api.error/error-type :sc.api.error-types/invalid-ep-id