chore: upgrade to eslint v9 (#2574)
This commit is contained in:
@@ -192,7 +192,8 @@ class IMDBRadarrProxy extends ExternalAPI {
|
||||
};
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`[IMDB RADARR PROXY API] Failed to retrieve movie ratings: ${e.message}`
|
||||
`[IMDB RADARR PROXY API] Failed to retrieve movie ratings: ${e.message}`,
|
||||
{ cause: e }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,7 +167,8 @@ class RottenTomatoes extends ExternalAPI {
|
||||
};
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`[RT API] Failed to retrieve movie ratings: ${e.message}`
|
||||
`[RT API] Failed to retrieve movie ratings: ${e.message}`,
|
||||
{ cause: e }
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -205,7 +206,9 @@ class RottenTomatoes extends ExternalAPI {
|
||||
year: Number(tvshow.releaseYear),
|
||||
};
|
||||
} catch (e) {
|
||||
throw new Error(`[RT API] Failed to retrieve tv ratings: ${e.message}`);
|
||||
throw new Error(`[RT API] Failed to retrieve tv ratings: ${e.message}`, {
|
||||
cause: e,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user