Skip to content

Commit

Permalink
Merge pull request #13 from Oscil8/master
Browse files Browse the repository at this point in the history
Use StandardError as parent for DecodeError
  • Loading branch information
progrium committed Sep 25, 2012
2 parents c6dce86 + cbb3e53 commit db0ac6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jwt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
require "multi_json"

module JWT
class DecodeError < Exception; end
class DecodeError < StandardError; end

def self.sign(algorithm, msg, key)
if ["HS256", "HS384", "HS512"].include?(algorithm)
Expand Down

0 comments on commit db0ac6b

Please sign in to comment.