Skip to content

Commit 54ef9d5

Browse files
committed
fix: standardize error messages to lowercase for consistency
1 parent 806cdab commit 54ef9d5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/system/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func GetInstalledNodeVersion() (string, error) {
1313
// Check if Node.js is installed
1414
nodePath, err := exec.LookPath("node")
1515
if err != nil {
16-
return "", fmt.Errorf("Node.js is not installed: %w", err)
16+
return "", fmt.Errorf("node.js is not installed: %w", err)
1717
}
1818

1919
// Get the Node.js version

internal/verifier/embed.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ func SetupTools(ctx context.Context, currentVersion string) error {
3636
if ok, err := system.IsPHPVersionAtLeast("8.2.0"); err != nil {
3737
return fmt.Errorf("failed to check installed PHP version: %w", err)
3838
} else if !ok {
39-
return fmt.Errorf("PHP version must be at least 8.2.0 to use this. Update your PHP version or use the shopware-cli docker image")
39+
return fmt.Errorf("php version must be at least 8.2.0 to use this. Update your PHP version or use the shopware-cli docker image")
4040
}
4141

4242
if ok, err := system.IsNodeVersionAtLeast("22.0.0"); err != nil {
4343
return fmt.Errorf("failed to check installed Node.js version: %w", err)
4444
} else if !ok {
45-
return fmt.Errorf("Node.js version must be at least 22.0.0 to use this. Update your Node.js version or use the shopware-cli docker image")
45+
return fmt.Errorf("node.js version must be at least 22.0.0 to use this. Update your Node.js version or use the shopware-cli docker image")
4646
}
4747

4848
logging.FromContext(ctx).Debugf("Using tool directory: %s", toolsDir)

0 commit comments

Comments
 (0)