Skip to content

Commit c96723c

Browse files
thomathoma
authored andcommitted
Create error log if error present
1 parent 4280863 commit c96723c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributecode/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf8 -*-
33

44
# ============================================================================
5-
# Copyright (c) 2013-2018 nexB Inc. http://www.nexb.com/ - All rights reserved.
5+
# Copyright (c) 2013-2019 nexB Inc. http://www.nexb.com/ - All rights reserved.
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
88
# You may obtain a copy of the License at
@@ -459,7 +459,7 @@ def transform(location, output, configuration, quiet, verbose): # NOQA
459459

460460
errors = transform_csv_to_csv(location, output, transformer)
461461

462-
errors_count = report_errors(errors, quiet, verbose)
462+
errors_count = report_errors(errors, quiet, verbose, log_file_loc=output + '-error.log')
463463
if not quiet and not errors:
464464
msg = 'Transformed CSV written to {output}.'.format(**locals())
465465
click.echo(msg)

0 commit comments

Comments
 (0)