Skip to content

Commit 006cbc7

Browse files
author
David Berry
committed
datget0x: Correct error messages
1 parent 8ba292e commit 006cbc7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

datget0x.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int datGet0C ( const HDSLoc * loc, char * value, size_t str_len, int * status )
137137
/* Report an error if not. */
138138
if( !isscalar && *status == SAI__OK ) {
139139
*status = DAT__DIMIN;
140-
emsRepf("datGet0C_1", "datGet0I: Data must be scalar.", status );
140+
emsRepf("datGet0C_1", "datGet0C: Data must be scalar.", status );
141141
}
142142

143143
/* Obtain the unterminated string but pass in a size one less than
@@ -180,7 +180,7 @@ int datGet0D ( const HDSLoc * loc, double * value, int * status ) {
180180
/* Report an error if not. */
181181
if( !isscalar && *status == SAI__OK ) {
182182
*status = DAT__DIMIN;
183-
emsRepf("datGet0D_1", "datGet0I: Data must be scalar.", status );
183+
emsRepf("datGet0D_1", "datGet0D: Data must be scalar.", status );
184184
}
185185

186186
/* Get the value. */
@@ -211,7 +211,7 @@ int datGet0R ( const HDSLoc * loc, float * value, int * status ) {
211211
/* Report an error if not. */
212212
if( !isscalar && *status == SAI__OK ) {
213213
*status = DAT__DIMIN;
214-
emsRepf("datGet0R_1", "datGet0I: Data must be scalar.", status );
214+
emsRepf("datGet0R_1", "datGet0R: Data must be scalar.", status );
215215
}
216216

217217
/* Get the value. */
@@ -275,7 +275,7 @@ int datGet0K ( const HDSLoc * loc, int64_t * value, int * status ) {
275275
/* Report an error if not. */
276276
if( !isscalar && *status == SAI__OK ) {
277277
*status = DAT__DIMIN;
278-
emsRepf("datGet0K_1", "datGet0I: Data must be scalar.", status );
278+
emsRepf("datGet0K_1", "datGet0K: Data must be scalar.", status );
279279
}
280280

281281
/* Get the value. */
@@ -306,7 +306,7 @@ int datGet0W ( const HDSLoc * loc, short * value, int * status ) {
306306
/* Report an error if not. */
307307
if( !isscalar && *status == SAI__OK ) {
308308
*status = DAT__DIMIN;
309-
emsRepf("datGet0W_1", "datGet0I: Data must be scalar.", status );
309+
emsRepf("datGet0W_1", "datGet0W: Data must be scalar.", status );
310310
}
311311

312312
/* Get the value. */
@@ -337,7 +337,7 @@ int datGet0UW ( const HDSLoc * loc, unsigned short * value, int * status ) {
337337
/* Report an error if not. */
338338
if( !isscalar && *status == SAI__OK ) {
339339
*status = DAT__DIMIN;
340-
emsRepf("datGet0UW_1", "datGet0I: Data must be scalar.", status );
340+
emsRepf("datGet0UW_1", "datGet0UW: Data must be scalar.", status );
341341
}
342342

343343
/* Get the value. */
@@ -368,7 +368,7 @@ int datGet0L ( const HDSLoc * loc, hdsbool_t * value, int * status ) {
368368
/* Report an error if not. */
369369
if( !isscalar && *status == SAI__OK ) {
370370
*status = DAT__DIMIN;
371-
emsRepf("datGet0L_1", "datGet0I: Data must be scalar.", status );
371+
emsRepf("datGet0L_1", "datGet0L: Data must be scalar.", status );
372372
}
373373

374374
/* Get the value. */

0 commit comments

Comments
 (0)