mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix crash on publish with no linters
This commit is contained in:
@@ -422,7 +422,7 @@ main.registerCommand({
|
||||
|
||||
if (!options['no-lint']) {
|
||||
const warnings = projectContext.getLintingMessagesForLocalPackages();
|
||||
if (warnings.hasMessages()) {
|
||||
if (warnings && warnings.hasMessages()) {
|
||||
Console.arrowError(
|
||||
"Errors linting your package; run with --no-lint to ignore.");
|
||||
Console.printMessages(warnings);
|
||||
|
||||
Reference in New Issue
Block a user