aboutsummaryrefslogtreecommitdiff
path: root/src/dmstor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dmstor.c')
-rw-r--r--src/dmstor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dmstor.c b/src/dmstor.c
index 27593cb0..23871a85 100644
--- a/src/dmstor.c
+++ b/src/dmstor.c
@@ -51,7 +51,7 @@ dmstor_ctx(projCtx ctx, const char *is, char **rs) {
n = 2; break;
case 'r': case 'R':
if (nl) {
- pj_ctx_set_errno( ctx, -16 );
+ pj_ctx_set_errno( ctx, PJD_ERR_WRONG_FORMAT_DMS_VALUE );
return HUGE_VAL;
}
++s;
@@ -63,7 +63,7 @@ dmstor_ctx(projCtx ctx, const char *is, char **rs) {
continue;
}
if (n < nl) {
- pj_ctx_set_errno( ctx, -16 );
+ pj_ctx_set_errno( ctx, PJD_ERR_WRONG_FORMAT_DMS_VALUE );
return HUGE_VAL;
}
v += tv * vm[n];