From 4fe0c851ec073097b821b4a28ad6560b14bdc641 Mon Sep 17 00:00:00 2001 From: Taiki Sugawara Date: Sat, 9 Sep 2017 05:47:19 +0900 Subject: [PATCH] Show backtrace if rbnacl-libsodium not loaded --- lib/jwt/signature.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jwt/signature.rb b/lib/jwt/signature.rb index 69f03599..f215372b 100644 --- a/lib/jwt/signature.rb +++ b/lib/jwt/signature.rb @@ -4,8 +4,8 @@ require 'openssl' begin require 'rbnacl' -rescue LoadError => e - abort(e.message) if defined?(RbNaCl) +rescue LoadError + raise if defined?(RbNaCl) end # JWT::Signature module