Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
T
time-slime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Michael Rouse
time-slime
Commits
70b052ab
Commit
70b052ab
authored
Aug 14, 2018
by
Michael Rouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added format to the error
parent
e28c63da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/args/args.c
src/args/args.c
+3
-3
No files found.
src/args/args.c
View file @
70b052ab
...
...
@@ -75,7 +75,7 @@ timeslime_date parse_date(char *dateStr)
{
if
(
tmp
<
1000
)
{
log_error
(
"Invalid year, %d"
,
tmp
);
log_error
(
"Invalid year, %d
; dates must be in the format YYYY/MM/DD
"
,
tmp
);
date
.
error
=
True
;
return
date
;
}
...
...
@@ -87,7 +87,7 @@ timeslime_date parse_date(char *dateStr)
{
if
(
tmp
<
1
||
tmp
>
12
)
{
log_error
(
"Invalid month, %d"
,
tmp
);
log_error
(
"Invalid month, %d
; dates must be in the format YYYY/MM/DD
"
,
tmp
);
date
.
error
=
True
;
return
date
;
}
...
...
@@ -99,7 +99,7 @@ timeslime_date parse_date(char *dateStr)
{
if
(
tmp
<
1
||
tmp
>
31
)
{
log_error
(
"Invalid day, %d"
,
tmp
);
log_error
(
"Invalid day, %d
; dates must be in the format YYYY/MM/DD
"
,
tmp
);
date
.
error
=
True
;
return
date
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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