diff --git a/release_notes_generator.cpp b/release_notes_generator.cpp index ffdbd55..adafed8 100644 --- a/release_notes_generator.cpp +++ b/release_notes_generator.cpp @@ -102,9 +102,11 @@ int main(int argc, char* argv[]){ } } catch (const exception& e) { - cout << e.what(); + cout << e.what() << endl; + return 0; } + cout << "Release notes generated successfully, check " + MARKDOWN_OUTPUT_FILE_NAME + " in the current directory" << endl; return 0; } @@ -303,7 +305,7 @@ string getNormalCommitsNotes(int commitTypeIndex) { FILE* pipe = _popen(commandToRetrieveCommitsMessages.c_str(), "r"); if (!pipe) { - throw runtime_error("Error: Unable to open pipe to read git log commmand output"); + throw runtime_error("Unable to open pipe to read git log commmand output"); } char buffer[150]; @@ -343,6 +345,8 @@ void generateReleaseNotes(Commits commit, OutputTypes outputType, ReleaseNoteMod } } + cout << "Generating release notes......." << endl; + string commandToRetrieveCommitsMessages; string currentCommitMessage; for (int i = 0; i < COMMIT_TYPES_COUNT; i++)