Skip to content

Commit

Permalink
fix(log): fix logging of error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nivekcode committed Sep 2, 2020
1 parent 7e5f63f commit 040ea28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/converters/files.converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '../generators/code-snippet-generators';
import { getFilePathsFromRegex } from '../helpers/regex-helpers';
import { deleteFiles, deleteFolder, writeFile } from '../helpers/file-helpers';
import { info, separatorEnd, separatorStart, success } from '../helpers/log-helper';
import { error, info, separatorEnd, separatorStart, success } from '../helpers/log-helper';
import { FileConversionOptions } from '../options/conversion-options';
import { compile } from '../compiler/typescript-compiler';
import { filesProcessor } from './shared.converter';
Expand Down Expand Up @@ -83,8 +83,8 @@ export const convertToFiles = async (conversionOptions: FileConversionOptions):
`don't forget to copy this folder to your dist in a post build script - enjoy your tree-shakable icon library 😎`
);
success('========================================================');
} catch (error) {
error('Something went wrong', error);
} catch (exception) {
error(`Something went wrong: ${exception}`);
process.exit(1);
}
};

0 comments on commit 040ea28

Please sign in to comment.