diff --git a/src/cbor/token.cr b/src/cbor/token.cr index 6484e55..3a41caa 100644 --- a/src/cbor/token.cr +++ b/src/cbor/token.cr @@ -14,8 +14,11 @@ class CBOR::Token case token when IntT token.value.to_s + when BytesT + return %(h'') if token.value.empty? + "h'#{token.value.hexstring}'" else - "NOT IMPLEMENTED YET!" + raise "Diagnostic notation for type #{token.class} not implemented" end end end