git-p4: show Perforce error to the user
commit55702c543ea39230847dfc635ea1b604d66d9b83
authorFahad Alrashed <fahad@keylock.net>
Wed, 8 May 2024 22:11:05 +0000 (8 22:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2024 22:44:14 +0000 (8 15:44 -0700)
treed68c293ca6ebef6409f33158d8338797a0a0d37f
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
git-p4: show Perforce error to the user

During "git p4 clone" if p4 process returns an error from the server,
it will store the message in the 'err' variable. Then it will send a
text command "die-now" to git-fast-import. However, git-fast-import
raises an exception: "fatal: Unsupported command: die-now" and err is
never displayed. This patch ensures that err is shown to the end user.

Signed-off-by: Fahad Alrashed <fahad@keylock.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py