Skip to content

Commit b4cb90d

Browse files
committed
Fixing an error message.
1 parent d382a1e commit b4cb90d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎libraries/package-deps-hash/src/getPackageDeps.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function getGitHashForFiles(filesToHash: string[], packagePath: string):
103103
);
104104

105105
if (result.status !== 0) {
106-
throw new Error(`git hash-object exited with status ${result}: ${result.stderr}`);
106+
throw new Error(`git hash-object exited with status ${result.status}: ${result.stderr}`);
107107
}
108108

109109
const hashStdout: string = result.stdout.trim();
@@ -139,7 +139,7 @@ export function gitLsTree(path: string): string {
139139
);
140140

141141
if (result.status !== 0) {
142-
throw new Error(`git ls-tree exited with status ${result}: ${result.stderr}`);
142+
throw new Error(`git ls-tree exited with status ${result.status}: ${result.stderr}`);
143143
}
144144

145145
return result.stdout;
@@ -158,7 +158,7 @@ export function gitStatus(path: string): string {
158158
);
159159

160160
if (result.status !== 0) {
161-
throw new Error(`git ls-tree exited with status ${result}: ${result.stderr}`);
161+
throw new Error(`git status exited with status ${result.status}: ${result.stderr}`);
162162
}
163163

164164
return result.stdout;

0 commit comments

Comments
 (0)