Skip to content

Commit

Permalink
Unify message format - capitalize, no extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
rinatkhaziev authored Jan 9, 2024
1 parent 89edd2f commit afd68d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/client-file-uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const getFileHash = async (
await pipeline( src, dst );
return dst.digest().toString( 'hex' );
} catch ( err ) {
throw new Error( `could not generate file hash: ${ ( err as Error ).message }`, {
throw new Error( `Could not generate file hash: ${ ( err as Error ).message }`, {
cause: err,
} );
} finally {
Expand All @@ -106,7 +106,7 @@ const gzipFile = async ( uncompressedFileName: string, compressedFileName: strin
createWriteStream( compressedFileName )
);
} catch ( err ) {
throw new Error( `could not compress file: ${ ( err as Error ).message }`, { cause: err } );
throw new Error( `Could not compress file: ${ ( err as Error ).message }`, { cause: err } );
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/lib/validations/line-by-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function fileLineValidations(
} );

readInterface.on( 'error', ( err: Error ) => {
throw new Error( ` Error validating input file: ${ err.toString() }`, { cause: err } );
throw new Error( `Error validating input file: ${ err.toString() }`, { cause: err } );
} );

// Block until the processing completes
Expand Down

0 comments on commit afd68d9

Please sign in to comment.