Skip to content

Commit

Permalink
feat: Improve SPARQL error message (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeboer authored Dec 31, 2023
1 parent c7225ad commit c8aca5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default {
coverageReporters: ['json-summary', 'text'],
coverageThreshold: {
global: {
lines: 17.59,
statements: 17.59,
branches: 12.03,
lines: 17.16,
statements: 17.16,
branches: 9.77,
functions: 15.09,
},
},
Expand Down
5 changes: 4 additions & 1 deletion src/analyzer/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ async function probe(
distribution.isValid = result.isSuccess();
return result;
} catch (e) {
return new NetworkError(distribution.accessUrl!, (e as Error).name);
return new NetworkError(
distribution.accessUrl!,
(e as Error).cause as string
);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sourceMap": true,
"target": "es2018",
"lib": [
"ES2020"
"es2022"
],
"module": "es2022",
"declarationMap": true,
Expand Down

0 comments on commit c8aca5d

Please sign in to comment.