mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-11-01 22:34:11 +00:00
Improve error handling.
This commit is contained in:
1 parent
3e3803ed85
commit
c98d05270e
7 files changed
+105
-86
No files matched your search
@@ -279,7 +279,7 @@ Generic template helper definitions for HackMyResume / FluentCV.
|
||||
// Prevent accidental use of safe.start, safe.end, safe.date
|
||||
// The dateRange helper is for raw dates only
|
||||
if( moment.isMoment( dateA ) || moment.isMoment( dateB ) ) {
|
||||
_reportError( HMSTATUS.invalidHelperUse, { helper: 'dateRange' } )
|
||||
_reportError( HMSTATUS.invalidHelperUse, { helper: 'dateRange' } );
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user