fix licenses

This commit is contained in:
Sergey Dolin
2023-02-14 09:15:13 +01:00
parent 21a8be8320
commit b5b320bc53
32 changed files with 342 additions and 64 deletions

View File

@@ -557,7 +557,13 @@ export class IssuesProcessor {
(issue: Readonly<OctokitIssue>): Issue => new Issue(this.options, issue)
);
} catch (error) {
throw Error(`Get issues for repo error: ${error.message}`);
const rethrow = Error(
`Getting issues was blocked by the error: ${error.message}`
);
rethrow.stack = `${error.stack.split('\n').slice(0, 2).join('\n')}\n${
error.stack
}`;
throw error;
}
}