bugmonotone - Bugs: bug #9515, need to report a sensible error if...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9515: need to report a sensible error if the get_passphrase hook returns an empty string

Submitted by:  Derek Scherger <dscherger>
Submitted on:  Thu 01 Jul 2004 03:53:22 AM UTC  
 
Category: command line UISeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed
mtn version --full: 

Thu 01 Jul 2004 03:53:22 AM UTC, original submission:

I had the following hook definition in ~/.monotonerc

function get_passphrase(keypair_id)
print ("getting passphrase for " .. keypair_id)
if (keypair_id == "derek") then return "foobar" end
return ""
end

Generating a named something other than "derek" responds with the following:

monotone: fatal: std::exception: ARC4: 0 is not a valid key length

preceeded by several lines of other not terribly helpful output. Perhaps my hook definition is bad and there is a better way to fail for unknown keys. However, if the phrase from the hook is empty an error message to this effect would be helpful.

Derek Scherger <dscherger>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 31 Jul 2004 11:15:26 PM UTCgraydonStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1