Compare commits

...

2 Commits

Author SHA1 Message Date
Torkel Ödegaard
6e1beea1f2 fix(build): temp build fix, removed sass lint, fixes #6646 2016-11-22 13:34:36 +01:00
bergquist
a362c84fdf fix(cli): improve error message for upgrade-all
closes #5885
2016-08-30 13:56:47 +02:00
3 changed files with 11 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ func runCommand(command func(commandLine CommandLine) error) func(context *cli.C
cmd := &contextCommandLine{context} cmd := &contextCommandLine{context}
if err := command(cmd); err != nil { if err := command(cmd); err != nil {
logger.Errorf("\n%s: ", color.RedString("Error")) logger.Errorf("\n%s: ", color.RedString("Error"))
logger.Errorf("%s\n\n", err) logger.Errorf("%s %s\n\n", color.RedString("✗"), err)
cmd.ShowHelp() cmd.ShowHelp()
os.Exit(1) os.Exit(1)

View File

@@ -53,8 +53,16 @@ func upgradeAllCommand(c CommandLine) error {
for _, p := range pluginsToUpgrade { for _, p := range pluginsToUpgrade {
logger.Infof("Updating %v \n", p.Id) logger.Infof("Updating %v \n", p.Id)
s.RemoveInstalledPlugin(pluginsDir, p.Id) var err error
InstallPlugin(p.Id, "", c) err = s.RemoveInstalledPlugin(pluginsDir, p.Id)
if err != nil {
return err
}
err = InstallPlugin(p.Id, "", c)
if err != nil {
return err
}
} }
return nil return nil

View File

@@ -8,7 +8,6 @@ module.exports = function(grunt) {
'concat:cssLight', 'concat:cssLight',
'concat:cssFonts', 'concat:cssFonts',
'styleguide', 'styleguide',
'sasslint',
'postcss' 'postcss'
] ]
); );