### ----------------------------------------------------
### -- RakuDoc::Load
### -- Licenses: Artistic-2.0
### -- Authors: Tom Browder
### -- File: t/3-exceptions.rakutest
### ----------------------------------------------------
use Test;

use RakuDoc::Load;
use X::RakuDoc::Load::SourceErrors;
my $file = "gather.raku".IO.e??"./gather.raku"!!"t/gather.raku";

throws-like {
    my @rakudoc = load( $file );
}, X::RakuDoc::Load::SourceErrors, message => /lib/, "Throwing errors correctly";

done-testing;


