Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"scripts": {
"start": "npm run transpile && npm run start:transpiled",
"start:transpiled": "node --enable-source-maps dist/index.js",
"start:transpiled": "node dist/index.js",
"transpile": "tsc",
"lint": "eslint src --fix",
"lint-ci": "eslint src --max-warnings=0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import JobError from './jobError'
export function parseStacktraceLine (line: string): [string, string, number, number] {
const match = line.match(/^ +at (.+) \((.+):(\d+):(\d+)\)/)
if (match === null) {
throw new Error('Unexpected stacktrace line format')
throw new Error(`Unexpected stacktrace line format: ${line}`)
}
const [, functionName, fileName, lineNumber, position] = match
return [functionName, fileName, parseInt(lineNumber), parseInt(position)]
Expand All @@ -24,7 +24,7 @@ export function parseStacktraceLine (line: string): [string, string, number, num
function parseSyntaxErrorHeader (header: string): [string, number] {
const match = header.match(/^(.+):(\d+)/)
if (match === null) {
throw new Error('Unexpected stacktrace format')
throw new Error(`Unexpected stacktrace format: ${header}`)
}
const [, fileName, lineNumber] = match
return [fileName, parseInt(lineNumber)]
Expand Down