Skip to content

Commit

Permalink
Added a dot (.) at the end of the text of each common error
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 1, 2017
1 parent 155035c commit 1daac87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions lib/Errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ var HTTPError = (function (_super) {
}(Error));
exports.HTTPError = HTTPError;
exports.Errors = {
BadAuthentication: new Error('Bad authentication'),
AuenticationPropertyMissing: new Error('Properties are missing'),
WrongHeaderFormat: new Error('Wrong header format'),
MissingAuthorisationHeader: new Error('Missing Authorization header'),
UnrecognizedResource: new Error('Unrecognized resource'),
ParentPropertiesMissing: new Error('The parent resource must have some special properties'),
InvalidOperation: new Error('Invalid operation'),
BadAuthentication: new Error('Bad authentication.'),
AuenticationPropertyMissing: new Error('Properties are missing.'),
WrongHeaderFormat: new Error('Wrong header format.'),
MissingAuthorisationHeader: new Error('Missing Authorization header.'),
UnrecognizedResource: new Error('Unrecognized resource.'),
ParentPropertiesMissing: new Error('The parent resource must have some special properties.'),
InvalidOperation: new Error('Invalid operation.'),
ResourceAlreadyExists: new Error('The resource already exists.'),
ResourceNotFound: new Error('Can\'t find the resource.'),
CannotLockResource: new Error('Can\'t lock the resource.'),
PropertyNotFound: new Error('No property with such name.'),
AlreadyAuthenticated: new Error('Already authenticated'),
UserNotFound: new Error('User not found'),
AlreadyAuthenticated: new Error('Already authenticated.'),
UserNotFound: new Error('User not found.'),
XMLNotFound: new Error('Can\'t find the XML element.'),
ExpectedAFileResourceType: new Error('Expected a file resource type.'),
NoMimeTypeForAFolder: new Error('Cannot get the mime type of a folder type resource'),
NoSizeForAFolder: new Error('Cannot get the size of a folder type resource'),
IllegalArguments: new Error('Illegal arguments'),
NoMimeTypeForAFolder: new Error('Cannot get the mime type of a folder type resource.'),
NoSizeForAFolder: new Error('Cannot get the size of a folder type resource.'),
IllegalArguments: new Error('Illegal arguments.'),
None: null
};
exports.default = exports.Errors;
24 changes: 12 additions & 12 deletions src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,24 @@ export class HTTPError extends Error
}

export const Errors = {
BadAuthentication: new Error('Bad authentication'),
AuenticationPropertyMissing: new Error('Properties are missing'),
WrongHeaderFormat: new Error('Wrong header format'),
MissingAuthorisationHeader: new Error('Missing Authorization header'),
UnrecognizedResource: new Error('Unrecognized resource'),
ParentPropertiesMissing: new Error('The parent resource must have some special properties'),
InvalidOperation: new Error('Invalid operation'),
BadAuthentication: new Error('Bad authentication.'),
AuenticationPropertyMissing: new Error('Properties are missing.'),
WrongHeaderFormat: new Error('Wrong header format.'),
MissingAuthorisationHeader: new Error('Missing Authorization header.'),
UnrecognizedResource: new Error('Unrecognized resource.'),
ParentPropertiesMissing: new Error('The parent resource must have some special properties.'),
InvalidOperation: new Error('Invalid operation.'),
ResourceAlreadyExists: new Error('The resource already exists.'),
ResourceNotFound: new Error('Can\'t find the resource.'),
CannotLockResource: new Error('Can\'t lock the resource.'),
PropertyNotFound: new Error('No property with such name.'),
AlreadyAuthenticated: new Error('Already authenticated'),
UserNotFound: new Error('User not found'),
AlreadyAuthenticated: new Error('Already authenticated.'),
UserNotFound: new Error('User not found.'),
XMLNotFound: new Error('Can\'t find the XML element.'),
ExpectedAFileResourceType: new Error('Expected a file resource type.'),
NoMimeTypeForAFolder: new Error('Cannot get the mime type of a folder type resource'),
NoSizeForAFolder: new Error('Cannot get the size of a folder type resource'),
IllegalArguments: new Error('Illegal arguments'),
NoMimeTypeForAFolder: new Error('Cannot get the mime type of a folder type resource.'),
NoSizeForAFolder: new Error('Cannot get the size of a folder type resource.'),
IllegalArguments: new Error('Illegal arguments.'),

None: null
};
Expand Down

0 comments on commit 1daac87

Please sign in to comment.