[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] map 35c27cd: Throw an error when converting a map into
From: |
Nicolas Petton |
Subject: |
Re: [Emacs-diffs] map 35c27cd: Throw an error when converting a map into an unknown map type |
Date: |
Sat, 18 Apr 2015 20:02:02 +0200 |
Stefan Monnier writes:
>> + (t (error "Not a map type name: %s" type))))
> ^^
> %S
>
> In case the user didn't pass the right argument `type' may be something
> else than a symbol, so the use of %S makes sure that the error will give
> a precise description (e.g. if `type' is the string "hash-table", the
> error message could be surprising).
Oh, thanks! The same is true in seq.el, I'll fix both of them :)
Nico
--
Nicolas Petton
http://nicolas-petton.fr
signature.asc
Description: PGP signature