git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv1 0/1] git-p4: better error reporting
@ 2018-06-05  8:55 Luke Diamand
  2018-06-05  8:55 ` [PATCHv1 1/1] git-p4: better error reporting when p4 fails Luke Diamand
  0 siblings, 1 reply; 4+ messages in thread
From: Luke Diamand @ 2018-06-05  8:55 UTC (permalink / raw)
  To: git
  Cc: SZEDER Gábor, Romain Merland, Miguel Torroja,
	viniciusalexandre, Lars Schneider, Luke Diamand

If git-p4 cannot talk to the Perforce server, it will either give a
confusing error message, or just crash. Even I get tripped up by this.

This change just checks that the client can talk to the server, and in
particular that the user is logged in (the default login timeout is 12
hours).

It would be nice to also check for ticket expiration during long
Perforce operations, but this change does not attempt to do that.

Luke Diamand (1):
  git-p4: better error reporting when p4 fails

 git-p4.py         | 55 +++++++++++++++++++++++++++++++++
 t/t9833-errors.sh | 78 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 133 insertions(+)
 create mode 100755 t/t9833-errors.sh

-- 
2.17.0.392.gdeb1a6e9b7


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-05 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-05  8:55 [PATCHv1 0/1] git-p4: better error reporting Luke Diamand
2018-06-05  8:55 ` [PATCHv1 1/1] git-p4: better error reporting when p4 fails Luke Diamand
     [not found]   ` <777690205.383623.1528195798488@mail.yahoo.com>
2018-06-05 10:59     ` Luke Diamand
2018-06-05 19:44       ` Eric Sunshine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).