Skip to content

Commit 22d1436

Browse files
committed
Merge branch 'hotfix/overwrite-exception'
Fixes an exception message raised when creating a new changelog and a file already exists.
2 parents a1d7ccc + d3bed47 commit 22d1436

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 1.4.2 - TBD
5+
## 1.4.2 - 2018-04-25
66

77
### Added
88

@@ -22,6 +22,9 @@ All notable changes to this project will be documented in this file, in reverse
2222

2323
### Fixed
2424

25+
- Fixes the exception message emitted when `new` is called and a changelog file already exists to
26+
properly mention the `--overwrite`, not the `--override`, option.
27+
2528
- [#20](https://github.com/phly/keep-a-changelog/pull/20) fixes detection of a changelog when only one changelog
2629
entry is present in the file.
2730

src/Exception/ChangelogExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ChangelogExistsException extends RuntimeException
1616
public static function forFile(string $file) : self
1717
{
1818
return new self(sprintf(
19-
'A changelog %s already exists; Use --override to override the changelog.',
19+
'A changelog %s already exists; Use --overwrite to replace the changelog.',
2020
$file
2121
));
2222
}

0 commit comments

Comments
 (0)