Skip to content

Commit

Permalink
do not swallow errors silently
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzevzl committed May 11, 2023
1 parent d2e3dd6 commit fe5871e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from '@nestjs/common';
import { Injectable, Logger } from '@nestjs/common';
import { HttpService } from '@nestjs/axios';
import axios, { CancelTokenSource } from 'axios';
import { WriteStream } from 'fs';
Expand Down Expand Up @@ -29,6 +29,7 @@ export class AssetFetcher {
);
assetStream.data.pipe(output);
} catch (error) {
Logger.error(error);
output.end();
return;
}
Expand Down

0 comments on commit fe5871e

Please sign in to comment.