Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
65e26b3a
Commit
65e26b3a
authored
10 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Improved error message
parent
283e250e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
castor/mediachanger/MountCmd.cpp
+1
-1
1 addition, 1 deletion
castor/mediachanger/MountCmd.cpp
castor/mediachanger/MountCmdLine.cpp
+3
-3
3 additions, 3 deletions
castor/mediachanger/MountCmdLine.cpp
with
4 additions
and
4 deletions
castor/mediachanger/MountCmd.cpp
+
1
−
1
View file @
65e26b3a
...
...
@@ -43,7 +43,7 @@ castor::mediachanger::MountCmd::~MountCmd() throw() {
}
//------------------------------------------------------------------------------
//
m
ain
//
exceptionThrowingM
ain
//------------------------------------------------------------------------------
void
castor
::
mediachanger
::
MountCmd
::
exceptionThrowingMain
(
const
int
argc
,
char
*
const
*
const
argv
)
{
...
...
This diff is collapsed.
Click to expand it.
castor/mediachanger/MountCmdLine.cpp
+
3
−
3
View file @
65e26b3a
...
...
@@ -69,10 +69,10 @@ castor::mediachanger::MountCmdLine::MountCmdLine(const int argc,
// Calculate the number of non-option ARGV-elements
const
int
nbArgs
=
argc
-
optind
;
// Check that both VID and DRIVE has been specified
// Check that both VID and DRIVE
_SLOT
has been specified
if
(
nbArgs
<
2
)
{
castor
::
exception
::
MissingOperand
ex
;
ex
.
getMessage
()
<<
"Both VID and DRIVE must be specified"
;
ex
.
getMessage
()
<<
"Both VID and DRIVE
_SLOT
must be specified"
;
throw
ex
;
}
...
...
@@ -82,7 +82,7 @@ castor::mediachanger::MountCmdLine::MountCmdLine(const int argc,
// Move on to the next command-line argument
optind
++
;
// Parse the DRIVE command-line argument
// Parse the DRIVE
_SLOT
command-line argument
driveLibrarySlot
=
GenericLibrarySlot
(
argv
[
optind
]);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment