Skip to content

Commit

Permalink
... again.........
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-corbalt committed Mar 7, 2024
1 parent f0bfcfa commit eebabff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 4 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/libs/jira-lib.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as dotenv from "dotenv";
import axios, { AxiosInstance } from "axios";
import axios, { AxiosError, AxiosInstance } from "axios";

dotenv.config();

Expand Down Expand Up @@ -156,8 +156,10 @@ export class Jira {
startAt = totalIssuesReceived;
total = results.total;
} catch (error: any) {
console.log(error.cause.toString())
console.log(error.constructor.name);
if (error instanceof AxiosError) {
console.log("We have an AxiosError")
}
console.log(error.constructor.name);
let errMsg = error.errors ? error.errors.map((err: any) => err.toString()).join(', ') : error.toString();
console.error(errMsg);
if (error instanceof AggregateError) {
Expand Down

0 comments on commit eebabff

Please sign in to comment.