Skip to content

Commit

Permalink
added more clear message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Duda committed Jul 18, 2024
1 parent e52ed2a commit abb776d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Commands/runVerifyUnpushedCommitsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export function runVerifyUnpushedCommitsCommand(args: Array<string>, root: strin
process.exit(verificationStatus === VerificationStatus.VERIFIED ? 0 : 1);
}).catch((reason: any) => {
console.log("An error occured while verifying unpushed commits, reason: ", reason);
if(reason.stack) {
console.log("Stack trace:");
console.log(reason.stack);
}
process.exit(1);
})

Expand Down
4 changes: 2 additions & 2 deletions src/Console/FileTagger.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Commit } from "nodegit";
import { getFileDirectoryPath } from "../FileSystem/fileSystemUtils";
import { GitRepository } from "../Git/GitRepository";
import { FileData } from "../Git/Types";
import { FileTagsDatabase, TagIdentifier } from "../Scope/FileTagsDatabase";
import { TagsDefinitionFile } from "../Scope/TagsDefinitionFile";
import { TagManager } from "./TagManager";
import { YesNoMenu } from "./YesNoMenu";
import { getFileDirectoryPath } from "../FileSystem/fileSystemUtils";

const { MultiSelect } = require('enquirer');

Expand Down Expand Up @@ -160,7 +160,7 @@ export class FileTagger {
private async _selectFiles(fileData: Array<FileData>): Promise<FileData[]> {
const prompt = new MultiSelect({
name: 'value',
message: 'Select files to apply the same tags and use ENTER to confirm',
message: 'Select files with SPACE to apply the same tags, use ENTER to confirm',
footer: 'CTRL+C to go to next step, G to select whole group',
limit: 10,
choices: this._mapFileDataToOptions(fileData),
Expand Down

0 comments on commit abb776d

Please sign in to comment.