Skip to content

Commit

Permalink
feat: better error message propagated if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Avishag Israeli committed Oct 19, 2020
1 parent 5acc55e commit e1822cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/acceptance/cli-test/cli-test.generic.spec.ts
Expand Up @@ -40,7 +40,7 @@ export const GenericTests: AcceptanceTests = {
} catch (err) {
t.equal(
err.userMessage,
"We couldn't test npm-package. Please check the version and package name and try running `snyk test` again.\nFor additional assistance, run `snyk help` or check out our docs \n(link to: https://support.snyk.io/hc/en-us/articles/360003851277#UUID-ba99a73f-110d-1f1d-9e7a-1bad66bf0996).",
'cli error message',
'got correct err message',
);
}
Expand All @@ -58,7 +58,7 @@ export const GenericTests: AcceptanceTests = {
} catch (err) {
t.equal(
err.userMessage,
"We couldn't test ruby-app. Please check the version and package name and try running `snyk test` again.\nFor additional assistance, run `snyk help` or check out our docs \n(link to: https://support.snyk.io/hc/en-us/articles/360003851277#UUID-ba99a73f-110d-1f1d-9e7a-1bad66bf0996).",
'cli error message',
'got correct err message',
);
}
Expand Down

0 comments on commit e1822cf

Please sign in to comment.