Skip to content

Commit

Permalink
elevated author check to an error
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Aug 10, 2024
1 parent d76c651 commit d40887f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/m2/packages.m2
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ newPackage String := opts -> pkgname -> (
if opts.Authors =!= null and any(opts.Authors, author -> (
author = new OptionTable from author;
author.?Name and match_{"(C|c)ontribut", "(M|m)aintain", "(A|a)uthor", "(T|t)hank"} author.Name))
then warning("newPackage: use the Contributors or Acknowledgement keywords to acknowledge contributors in the package documentation");
then error("newPackage: use the Contributors or Acknowledgement keywords to acknowledge contributors of " | pkgname);
-- optional package values
scan({
(Date, String),
Expand Down

0 comments on commit d40887f

Please sign in to comment.