gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Error handling updates


From: Thomas Zander
Subject: Re: [Gnu-arch-users] Error handling updates
Date: Wed, 24 Dec 2003 21:11:55 +0100
User-agent: KMail/1.5.94

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 24 December 2003 20:54, Aaron Bentley wrote:
> > It would be nice if the error message would end with a suggestion to get
> > the user on its way to solve the problem.
> >
> > So in addition to 'No such revision' it would be nice to print on a
> > second line (to stderr)
> > "check valid revisions using 'tla revisions'"
> > Alternatively (less nice, but more in line with current tla)
> > "  (try 'tla revisions')"
>
> Unfortunately, I can't identify *why* the revision doesn't exist.
...
> Anyone care to contribute arch_category_exists(), arch_branch_exists(),
> and arch_version_exists()?

Actually; those functions would be really nice, but I'm afraid Tom will argue 
that such functionality should exist in itla.

The second line of the error will give the user some idea on where to start to 
find out what went wrong. That was my sole intention and it means nothing but 
adding that one line to the error message; no code needed.

> Here's a beaut I just encountered:
>
> address@hidden tla]$ tla make-archive --listing --mirror \
> address@hidden \
> sftp://panoramicfeedback.com/var/www/archives/
> Failure
>
> Anyone have any idea where that comes from?  The string "Failure"
> doesn't appear anywhere in /src/tla

Probably comes from the command tla calls; my guess is that its ssh (or scp).
An strace will give you the info you need.

Needless to say that an additional error message produced by tla would be 
really nice :)

- -- 
Thomas Zander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/6fMLCojCW6H2z/QRAhusAKCFzMS+i1IwCtFS5mqp/PnQ91mSNACgzGOY
iIfQNamh0uzwgxpKWfVbkTE=
=ylR7
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]