Skip to content

[Le #152] Fix case of spec error printing where erroneously passing no arguments causes bad formatting #62

Open
@stanislowskij

Description

@stanislowskij

⚠️ Imported from legacy repository. This issue is a duplicate of Clojure-Intro-Course/babel-legacy#152.

Small issue, but with babel-spec'd functions in the core library that require multiple arguments, e.g. reduce, take, map, ..., the modified exception output adds an extra space after the function name in the description of the error.

Example:

babel.middleware=> (map)
Wrong number of arguments in (map ): the function map expects one or more arguments but was given no arguments.

This is probably fixable with a simple if block in processor/babel-spec-message, but I am sure this issue is present in different cases where the exception is modified, I just haven't checked yet.

Metadata

Metadata

Assignees

Labels

small bugSomething isn't working right, but not fatal

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions