Display MessageBox on Error

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Display MessageBox on Error

Post by GregM » Mon Oct 04, 2004 10:31 am

Is there any way to get Vault to display an error message dialog when a commit fails, instead of just writing to the Messages pane? The only way that I know that the commit fails is that I notice that the files are still listed in the Pending Change Set pane. The Messages pane has new text added to it both during a successful commit, and an unsuccessful one, so the bold tab name isn't helpful.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Oct 04, 2004 10:57 am

Greg,

We do, and it warns by default. Can you verify under Tools->Options->Warnings that the "Warn when a Checkin/Commit transaction fails" is checked? It's checked by default.

-Jeremy

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Mon Oct 04, 2004 12:21 pm

I thought that it did display something, but it didn't this time, so I thought maybe I was remembering wrong.

Yes, it is checked on my machine.

Both the client and server are 2.0.6.

I was checking in by right-clicking on an "Add" action in the pending change set pane and selecting "Commit" from the context menu.

Here's the relevant section of the messages pane.

[10/4/2004 11:56:44 AM] Preparing data to begin transaction
[10/4/2004 11:56:44 AM] Beginning transaction
[10/4/2004 11:56:45 AM] Server unavailable for transaction begin
[10/4/2004 11:56:45 AM] Transaction failed

The last two lines have red text for the error message.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Oct 04, 2004 12:23 pm

Does your Vault server log file give any clue as to why the Add failed?

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Mon Oct 04, 2004 12:27 pm

Nope, the server log is set to quiet right now. All it shows for me is a login at 9:24 AM.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Oct 04, 2004 12:34 pm

Are you running Windows 2003 for your server?

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Mon Oct 04, 2004 1:33 pm

The server is 2003 Web edition, the client is Win XP SP2, .NET 1.1 (not SP1, as far as I know).

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Oct 05, 2004 2:37 pm

Is this reproducible, or did it just happen once?

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Tue Oct 05, 2004 2:59 pm

I know it has happened at least once before. I don't know of any way to make it happen, however.

The next time I disconnect from my VPN, I'll see if that will force it to happen.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Thu Oct 07, 2004 1:03 pm

The next version of Vault will warn when exceptions occur during the commit just like it currently warns when the commit encounters an unexceptional error. Thanks for catching this Greg!

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Post by GregM » Fri Oct 08, 2004 10:17 am

Glad you were able to track this down.

Locked