Skip to content

Commit a2ece90

Browse files
author
Alexander Konovalov
committed
Added InfoWarning in the case when no package is installed
1 parent f1d0636 commit a2ece90

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/package.gi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,6 +1422,12 @@ InstallGlobalFunction( LoadPackage, function( arg )
14221422
if not IsBound( GAPInfo.PackagesInfo.( name ) ) then
14231423
LogPackageLoadingMessage( PACKAGE_DEBUG,
14241424
"no package with this name is installed, return 'fail'", name );
1425+
if InfoLevel(InfoPackageLoading) < 4 then
1426+
Info(InfoWarning,1, name, " package is not available");
1427+
Info(InfoWarning,1, "Check that the package name is correct and it is located in the 'pkg'");
1428+
Info(InfoWarning,1, "subdirectory of your GAP installation or in the 'pkg' subdirectory");
1429+
Info(InfoWarning,1, "of at least one of the directories given by 'GAPInfo.RootPaths'");
1430+
fi;
14251431
return fail;
14261432
fi;
14271433

0 commit comments

Comments
 (0)