• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-cli / 24560951159

17 Apr 2026 10:39AM UTC coverage: 86.093% (-0.02%) from 86.117%
24560951159

push

github

web-flow
Improve error handling and error readability for all commands (#1614)

* fix(cli): improve error handling and error readability for all commands

* chore: bug fix text moved

* fix(cli): consolidate fail() handler message and set exitCode=1 for errors

Agent-Logs-Url: https://github.com/IgniteUI/igniteui-cli/sessions/9e5da6c9-348d-43b7-8bc9-e0b558ebbab3

Co-authored-by: ivanvpetrov <110455887+ivanvpetrov@users.noreply.github.com>

* fix(cli): replace showHelp with getHelp

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Konstantin Dinev <kdinev@infragistics.com>
Co-authored-by: onlyexeption <ibarakov@infragistics.com>

919 of 1231 branches covered (74.65%)

Branch coverage included in aggregate %.

14 of 16 new or added lines in 2 files covered. (87.5%)

5024 of 5672 relevant lines covered (88.58%)

87.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/packages/cli/bin/execute.js
1
#!/usr/bin/env node
2
const fs = require("fs");
10✔
3
const resolve = require("resolve");
10✔
4
const path = require("path");
10✔
5
const { hideBin } = require("yargs/helpers");
10✔
6

7
const args = hideBin(process.argv);
10✔
8

9
//execute -g igniteui-cli in case there is no project installed, else resolve to the local one
10
resolve("igniteui-cli", { basedir: process.cwd() }, function (err, res) {
10✔
11
        let cli;
12
        if (res && res.indexOf(process.cwd()) > -1) {
10!
13
                const localVersion = require(path.join(process.cwd(), "node_modules/igniteui-cli/package.json"))["version"];
10✔
14
                const globalVersion = require(path.join(__dirname, "../package.json"))["version"];
10✔
15
                if (globalVersion !== localVersion) {
10!
16
                        console.log("Different igniteui-cli global and local version");
×
17
                }
18
                cli = require(res);
10✔
19
        } else {
20
                cli = require("../lib/cli");
×
21
        }
22
        cli.run(args).catch(function (err) {
10✔
NEW
23
                console.error("Error: " + (err.message || err));
×
NEW
24
                process.exit(1);
×
25
        });
26
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc