Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sshaw opened this issue May 20, 2019 · 1 comment
Open

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

sshaw opened this issue May 20, 2019 · 1 comment

Comments

@sshaw
Copy link

sshaw commented May 20, 2019

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 😄

@atheriel
Copy link
Owner

I believe the comment refers to the fact that an even more obscure-looking error will occur if one of the files does not exist. However, I take your point -- the user-visible message could definitely be improved here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants