Skip to content

Instead of Calling cl-assert, Signal Error With a Message #18

@sshaw

Description

@sshaw

Just got an error message exporting to a file:

cl--assertion-failed: Assertion failed: (file-exists-p file)

Had to (setq debug-on-error t) to figure out why:

;; For the sake of better debug messages, check whether all of the
;; files exists first.
(mapc (lambda (file) (cl-assert (file-exists-p file))) filelist))

The irony of the associated comment is not lost on me 😄

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions