Skip to content

Commit

Permalink
fix: Update error URLs
Browse files Browse the repository at this point in the history
I don't assume that someone used the content of the URLs to distinguish the errors.

closes #343
  • Loading branch information
sebbo2002 committed Jan 18, 2022
1 parent ef85910 commit 2628464
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/alarm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export default class ICalAlarm {
else {
throw new Error(
'`attachment` needs to be a valid formed string or an object. See https://sebbo2002.github.io/' +
'ical-generator/develop/reference/classes/icalalarm.html#attach'
'ical-generator/develop/reference/classes/ICalAlarm.html#attach'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class ICalCalendar {
if (typeof prodId === 'string') {
throw new Error(
'`prodId` isn\'t formated correctly. See https://sebbo2002.github.io/ical-generator/develop/reference/'+
'classes/icalcalendar.html#prodid'
'classes/ICalCalendar.html#prodId'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ export default class ICalEvent {
) {
throw new Error(
'`location` isn\'t formatted correctly. See https://sebbo2002.github.io/ical-generator/'+
'develop/reference/classes/icalevent.html#location'
'develop/reference/classes/ICalEvent.html#location'
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ export function checkNameAndMail (attribute: string, value: string | ICalOrganiz
if (!result && typeof value === 'string') {
throw new Error(
'`' + attribute + '` isn\'t formated correctly. See https://sebbo2002.github.io/ical-generator/develop/'+
'reference/interfaces/icalorganizer.html'
'reference/interfaces/ICalOrganizer.html'
);
}
else if (!result) {
throw new Error(
'`' + attribute + '` needs to be a valid formed string or an object. See https://sebbo2002.github.io/'+
'ical-generator/develop/reference/interfaces/icalorganizer.html'
'ical-generator/develop/reference/interfaces/ICalOrganizer.html'
);
}

Expand Down

0 comments on commit 2628464

Please sign in to comment.