Ticket #67 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Attempt to create an existing module should have better error message

Reported by: blee Owned by: blee
Priority: trivial Milestone: confman-1.9.3
Component: confman Version: 1.9.2b
Keywords: Cc:

Description

blee@util8.sjc1 ~/src/conf $ confman create kern1.lab2
confman[53587]: blee: svn: Try 'svn add' or 'svn add --non-recursive' instead?
confman[53587]: blee: svn: Can't create directory '/home/blee/src/conf/kern1.lab2': File exists
confman[53587]: blee: svn: Try 'svn add' or 'svn add --non-recursive' instead? 
confman[53587]: blee: svn: Can't create directory '/home/blee/src/conf/checkpoints/kern1.lab2': File exists

There should be a confman error message, like "module already exists", rather than an svn error message.

Change History

comment:1 Changed 2 years ago by blee

(In [430]) Improve error handling for conf_create_module.

See #67

comment:2 Changed 2 years ago by blee

(In [431]) Better error message for conf_create_module.

See #67

comment:3 Changed 2 years ago by blee

Now with an error message and appropriate exit status:

blee@supra.b1c1l1 ~/src/conf $ confman create gentoo
confman[5605]: blee: Module already exists: gentoo
blee@supra.b1c1l1 ~/src/conf $ echo $?
1

comment:4 Changed 2 years ago by blee

  • Status changed from new to closed
  • Resolution set to fixed

(In [432]) Merge from trunk improved error handling for conf_create_module.

Fixes #67

comment:5 Changed 2 years ago by blee

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:6 Changed 2 years ago by blee

  • Owner changed from confman-developers@… to blee
  • Status changed from reopened to accepted

comment:7 Changed 2 years ago by blee

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.