Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
de5faae6
Commit
de5faae6
authored
14 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1655:
Use backtrace possibility
parent
871a2968
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
CEP/MS/src/combinevds.cc
+5
-2
5 additions, 2 deletions
CEP/MS/src/combinevds.cc
CEP/MS/src/makevds.cc
+7
-3
7 additions, 3 deletions
CEP/MS/src/makevds.cc
with
12 additions
and
5 deletions
CEP/MS/src/combinevds.cc
+
5
−
2
View file @
de5faae6
...
...
@@ -30,6 +30,9 @@ using namespace std;
using
namespace
LOFAR
;
using
namespace
LOFAR
::
CEP
;
// Define handler that tries to print a backtrace.
Exception
::
TerminateHandler
t
(
Exception
::
terminate
);
int
main
(
int
argc
,
const
char
*
argv
[])
{
try
{
...
...
@@ -46,8 +49,8 @@ int main (int argc, const char* argv[])
// Combine them.
VdsMaker
::
combine
(
argv
[
1
],
vdsNames
);
}
catch
(
e
xception
&
x
)
{
cout
<<
"Unexpected expection: "
<<
x
.
what
()
<<
endl
;
}
catch
(
LOFAR
::
E
xception
&
err
)
{
std
::
cerr
<<
"LOFAR Exception detected: "
<<
err
<<
std
::
endl
;
return
1
;
}
return
0
;
...
...
This diff is collapsed.
Click to expand it.
CEP/MS/src/makevds.cc
+
7
−
3
View file @
de5faae6
...
...
@@ -25,14 +25,18 @@
#include
<stdexcept>
#include
<iostream>
using
namespace
LOFAR
;
using
namespace
std
;
// Define handler that tries to print a backtrace.
Exception
::
TerminateHandler
t
(
Exception
::
terminate
);
int
main
(
int
argc
,
const
char
*
argv
[])
{
try
{
if
(
argc
<
3
||
argv
[
1
][
0
]
==
'\0'
||
argv
[
2
][
0
]
==
'\0'
)
{
cout
<<
"Run as: makevds clusterdesc ms [msvds] [hostname] [writetimes]"
<<
endl
;
cout
<<
"Run as: makevds clusterdesc ms [msvds] [hostname] [writetimes]"
<<
endl
;
cout
<<
" default vds name is <ms>.vds"
<<
endl
;
cout
<<
" default host name is gethostname()"
<<
endl
;
cout
<<
" default writetimes is false (0)"
<<
endl
;
...
...
@@ -58,8 +62,8 @@ int main(int argc, const char* argv[])
writeTimes
=
(
argv
[
5
][
0
]
==
't'
||
argv
[
5
][
0
]
==
'T'
||
argv
[
5
][
0
]
==
'1'
);
}
LOFAR
::
VdsMaker
::
create
(
argv
[
2
],
msvds
,
argv
[
1
],
hostName
,
writeTimes
);
}
catch
(
e
xception
&
x
)
{
cout
<<
"Unexpected expection: "
<<
x
.
what
()
<<
endl
;
}
catch
(
LOFAR
::
E
xception
&
err
)
{
std
::
cerr
<<
"LOFAR Exception detected: "
<<
err
<<
std
::
endl
;
return
1
;
}
return
0
;
...
...
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