Skip to content

Commit

Permalink
Added InfoWarning in the case when no package is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Konovalov committed Mar 28, 2016
1 parent f1d0636 commit a2ece90
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/package.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,12 @@ InstallGlobalFunction( LoadPackage, function( arg )
if not IsBound( GAPInfo.PackagesInfo.( name ) ) then
LogPackageLoadingMessage( PACKAGE_DEBUG,
"no package with this name is installed, return 'fail'", name );
if InfoLevel(InfoPackageLoading) < 4 then
Info(InfoWarning,1, name, " package is not available");
Info(InfoWarning,1, "Check that the package name is correct and it is located in the 'pkg'");
Info(InfoWarning,1, "subdirectory of your GAP installation or in the 'pkg' subdirectory");
Info(InfoWarning,1, "of at least one of the directories given by 'GAPInfo.RootPaths'");
fi;
return fail;
fi;

Expand Down

0 comments on commit a2ece90

Please sign in to comment.