Skip to content

Commit b384aad

Browse files
Merge pull request #13753 from micalevisk/patch-1
feat(common): less verbose 'missing package' error message
2 parents 6afb66e + c5d08c8 commit b384aad

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
/**
22
* Options for `StreamableFile`
33
*
4+
* @see [Streaming files](https://docs.nestjs.com/techniques/streaming-files)
5+
*
46
* @publicApi
57
*/
68
export interface StreamableFileOptions {
9+
/**
10+
* The value that will be used for the `Content-Type` response header.
11+
* @default `"application/octet-stream"`
12+
*/
713
type?: string;
14+
/**
15+
* The value that will be used for the `Content-Disposition` response header.
16+
*/
817
disposition?: string;
18+
/**
19+
* The value that will be used for the `Content-Length` response header.
20+
*/
921
length?: number;
1022
}

packages/common/utils/load-package.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Logger } from '../services/logger.service';
22

33
const MISSING_REQUIRED_DEPENDENCY = (name: string, reason: string) =>
4-
`The "${name}" package is missing. Please, make sure to install this library ($ npm install ${name}) to take advantage of ${reason}.`;
4+
`The "${name}" package is missing. Please, make sure to install it to take advantage of ${reason}.`;
55

66
const logger = new Logger('PackageLoader');
77

0 commit comments

Comments
 (0)