Best error msg ever

Sönke Ludwig via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 9 13:28:58 PST 2017


Am 09.02.2017 um 22:20 schrieb Daniel Kozak:
> source/app.d(51,37): Error: function dub.internal.utils.jsonFromFile
> (Path file, bool silent_fail = false) is not callable using argument
> types (Path, bool)
>
> WTF?

Must be caused by Path meaning two different type definitions. The most 
likely cause is that by default the DUB sources use their own version of 
Path, while if vibe.d is available in the dependency graph, they will 
use the ones defined there instead.

But the error message is indeed awful.


More information about the Digitalmars-d mailing list