Skip to content

Commit 9a178b6

Browse files
committed
In test t/56connattr.t print full error message when there is a permission problem
1 parent cf630b9 commit 9a178b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/56connattr.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ if ($pfenabled[1] ne 'ON') {
2626
}
2727

2828
if (not eval { $dbh->do("select * from performance_schema.session_connect_attrs where processlist_id=connection_id()") }) {
29+
my $err = $dbh->errstr || 'no permission on performance_schema tables';
2930
$dbh->disconnect();
30-
plan skip_all => "no permission on performance_schema tables";
31+
plan skip_all => $err;
3132
}
3233

3334
$dbh->disconnect();

0 commit comments

Comments
 (0)