Refactoring: Simplify retrieving error message
This commit is contained in:
parent
bbd7c801a0
commit
dd7307d603
54 changed files with 106 additions and 89 deletions
|
|
@ -17,10 +17,10 @@ import {
|
|||
setupTests,
|
||||
} from "./testing-utils";
|
||||
import {
|
||||
getErrorMessage,
|
||||
GitHubVariant,
|
||||
initializeEnvironment,
|
||||
withTmpDir,
|
||||
wrapError,
|
||||
} from "./util";
|
||||
|
||||
setupTests(test);
|
||||
|
|
@ -56,7 +56,7 @@ test("convert to semver", (t) => {
|
|||
);
|
||||
t.deepEqual(parsedVersion, expectedVersion);
|
||||
} catch (e) {
|
||||
t.fail(wrapError(e).message);
|
||||
t.fail(getErrorMessage(e));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue