Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
12daf8ba
Commit
12daf8ba
authored
Sep 08, 2020
by
Uwe Schulzweida
Browse files
zaxisCreate_: improved error message.
parent
0a2bb191
Changes
1
Show whitespace changes
Inline
Side-by-side
src/zaxis.c
View file @
12daf8ba
...
...
@@ -190,7 +190,7 @@ int zaxisCreate_(int zaxistype, int size, int id)
zaxisptr
->
size
=
size
;
if
(
zaxistype
>=
CDI_NumZaxistype
||
zaxistype
<
0
)
Error
(
"Internal problem! zaxistype
>
CDI_
Max
Zaxistype
"
);
Error
(
"Internal problem! zaxistype
=%d out of range (min=0/max=%d)!"
,
zaxistype
,
CDI_
Num
Zaxistype
-
1
);
const
int
zaxisID
=
zaxisptr
->
self
;
cdiDefKeyString
(
zaxisID
,
CDI_GLOBAL
,
CDI_KEY_NAME
,
ZaxistypeEntry
[
zaxistype
].
name
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment