Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 4c1f068

Browse files
committed
core: remove unused error classes
1 parent b04cb5b commit 4c1f068

File tree

3 files changed

+1
-36
lines changed

3 files changed

+1
-36
lines changed

packages/core/cli.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ require("source-map-support/register");
33

44
const semver = require("semver"); // to validate Node version
55
const TruffleError = require("@truffle/error");
6-
const TaskError = require("./lib/errors/taskerror");
76
const analytics = require("./lib/services/analytics");
87
const version = require("./lib/version");
98
const versionInfo = version.info();
@@ -107,15 +106,7 @@ runCommand(command, options)
107106
process.exit();
108107
})
109108
.catch(error => {
110-
if (error instanceof TaskError) {
111-
analytics.send({
112-
exception: "TaskError - display general help message",
113-
version: versionInfo.bundle
114-
? versionInfo.bundle
115-
: "(unbundled) " + versionInfo.core
116-
});
117-
command.displayGeneralHelp();
118-
} else if (error instanceof TruffleError) {
109+
if (error instanceof TruffleError) {
119110
analytics.send({
120111
exception: "TruffleError - missing configuration file",
121112
version: versionInfo.bundle

packages/core/lib/errors/deployerror.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/core/lib/errors/taskerror.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)