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

Hard to understand error when compiler is not last element of specification #2898

Open
rikkimax opened this issue Apr 15, 2024 · 0 comments
Open

Comments

@rikkimax
Copy link
Contributor

System information

  • dub version: 1.36.0-1+b3
  • OS Platform and distribution: Linux
  • compiler version ldc 1.36.0

Bug Description

A user on Discord encountered this issue.

They had a hard time understanding this error message.

enforce(splitted.empty, "No valid specification! The compiler has to be the last element: " ~ specification);

It would be good to expand upon on it and perhaps give an example in it.

How to reproduce?

Use specification ldc-linux.

Expected Behavior

A better error message.

Logs

image

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

No branches or pull requests

1 participant