kblincoe / VisualGit_SE701_2019_1

1 stars 0 forks source link

Improve error message when attempting to pull without a repo #175

Closed aorthi closed 5 years ago

aorthi commented 5 years ago

Description Currently, if you have not cloned a repository and you press the 'pull' button in the navigation bar, the error message that pops up is 'Error: String path is required. Failed to pull from remote'.

Screen Shot 2019-03-30 at 8 14 55 PM

It would be more useful to have the message say something along the lines of "Error: Failed to pull from remote as no repository is currently open. Please either clone one from a remote location or open one locally"

Acceptance criteria The above replacement message (or equivalent) would be displayed instead when a user attempts to pull without a repository

Pointers / Solutions N/A

Additional context N/A

Related issues Related to #50 however that one focuses on error messages exiting the program

KelseyRM commented 5 years ago

Approved - this would make a lot more sense especially to git-beginners!

DionBalmforth commented 5 years ago

Approved - This would be very useful, great find @aorthi

rmberriman commented 5 years ago

Approved - this would be super useful!