prepare to async: typos in error messages

This change extracts the grammar correction performed on the async branch,
anticipating them in a single commit. It cannot be folded with the previous
one, as it is not purely cosmetic.
This commit is contained in:
muxator 2019-02-15 22:52:53 +01:00
parent 9497ee734f
commit e841798314
6 changed files with 12 additions and 12 deletions

View file

@ -204,7 +204,7 @@ exports.getText = function(padID, rev, callback)
// ensure this is not a negative number
if (rev !== undefined && rev < 0) {
callback(new customError("rev is a negativ number", "apierror"));
callback(new customError("rev is a negative number", "apierror"));
return;
}
@ -257,7 +257,7 @@ exports.setText = function(padID, text, callback)
{
// text is required
if (typeof text != "string") {
callback(new customError("text is no string", "apierror"));
callback(new customError("text is not a string", "apierror"));
return;
}
@ -286,7 +286,7 @@ exports.appendText = function(padID, text, callback)
{
// text is required
if (typeof text != "string") {
callback(new customError("text is no string", "apierror"));
callback(new customError("text is not a string", "apierror"));
return;
}
@ -376,7 +376,7 @@ exports.setHTML = function(padID, html, callback)
{
// html is required
if (typeof html != "string") {
callback(new customError("html is no string", "apierror"));
callback(new customError("html is not a string", "apierror"));
return;
}
@ -472,7 +472,7 @@ exports.appendChatMessage = function(padID, text, authorID, time, callback)
{
// text is required
if (typeof text != "string") {
callback(new customError("text is no string", "apierror"));
callback(new customError("text is not a string", "apierror"));
return;
}
@ -569,7 +569,7 @@ exports.saveRevision = function(padID, rev, callback)
// ensure this is not a negative number
if (rev !== undefined && rev < 0) {
callback(new customError("rev is a negativ number", "apierror"));
callback(new customError("rev is a negative number", "apierror"));
return;
}
@ -694,7 +694,7 @@ exports.restoreRevision = function(padID, rev, callback)
// ensure this is not a negative number
if (rev !== undefined && rev < 0) {
callback(new customError("rev is a negativ number", "apierror"));
callback(new customError("rev is a negative number", "apierror"));
return;
}

View file

@ -199,7 +199,7 @@ exports.createGroupIfNotExistsFor = function(groupMapper, callback)
{
// ensure mapper is optional
if (typeof groupMapper != "string") {
callback(new customError("groupMapper is no string", "apierror"));
callback(new customError("groupMapper is not a string", "apierror"));
return;
}

View file

@ -95,7 +95,7 @@ exports.createSession = function(groupID, authorID, validUntil, callback)
// ensure this is not a negative number
if (validUntil < 0) {
callback(new customError("validUntil is a negativ number", "apierror"));
callback(new customError("validUntil is a negative number", "apierror"));
return;
}