Skip to content

Commit

Permalink
fix error message for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
a-camarillo committed Apr 2, 2024
1 parent 6f40c2f commit 1f92a71
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 7 additions & 2 deletions broom.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"
"log"
"os"

"github.com/gdamore/tcell/v2"
Expand All @@ -12,6 +13,8 @@ func InitializeMenu() {

var branchesToDelete []string
var path string

pwd, _ := os.Getwd()

modalIsOpen := false

Expand All @@ -25,12 +28,14 @@ func InitializeMenu() {

repo, err := NewGitRepositoryFromString(path)
if err != nil {
panic(err)
error := fmt.Errorf("error for path %s: %s", pwd, err)
log.Fatal(error)
}

refs, err := NewReferences(repo)
if err != nil {
panic(err)
error := fmt.Errorf("error: %s", err)
log.Fatal(error)
}

helpBox := tview.NewTextView()
Expand Down
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
};
in
{
devShells = {
default = pkgs.mkShell {
packages = [ pkgs.go ];
inputsFrom = [ self.packages ];
};
};
packages = {
inherit broom;
};
Expand Down

0 comments on commit 1f92a71

Please sign in to comment.