Skip to content

Commit 040ea28

Browse files
committed
fix(log): fix logging of error message
1 parent 7e5f63f commit 040ea28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/converters/files.converter.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '../generators/code-snippet-generators';
77
import { getFilePathsFromRegex } from '../helpers/regex-helpers';
88
import { deleteFiles, deleteFolder, writeFile } from '../helpers/file-helpers';
9-
import { info, separatorEnd, separatorStart, success } from '../helpers/log-helper';
9+
import { error, info, separatorEnd, separatorStart, success } from '../helpers/log-helper';
1010
import { FileConversionOptions } from '../options/conversion-options';
1111
import { compile } from '../compiler/typescript-compiler';
1212
import { filesProcessor } from './shared.converter';
@@ -83,8 +83,8 @@ export const convertToFiles = async (conversionOptions: FileConversionOptions):
8383
`don't forget to copy this folder to your dist in a post build script - enjoy your tree-shakable icon library 😎`
8484
);
8585
success('========================================================');
86-
} catch (error) {
87-
error('Something went wrong', error);
86+
} catch (exception) {
87+
error(`Something went wrong: ${exception}`);
8888
process.exit(1);
8989
}
9090
};

0 commit comments

Comments
 (0)