Fixed typo in exception messages

https://bugs.webkit.org/show_bug.cgi?id=76710

Patch by Thiago Marcos P. Santos <tmpsantos@gmail.com> on 2012-01-23
Reviewed by Alexey Proskuryakov.

* dom/DOMCoreException.cpp:
* fileapi/FileException.cpp:
* storage/SQLTransaction.cpp:
(WebCore::SQLTransaction::openTransactionAndPreflight):
(WebCore::SQLTransaction::postflightAndCommit):
* xml/XMLHttpRequestException.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 40f8d29a
2012-01-23 Thiago Marcos P. Santos <tmpsantos@gmail.com>
Fixed typo in exception messages
https://bugs.webkit.org/show_bug.cgi?id=76710
Reviewed by Alexey Proskuryakov.
* dom/DOMCoreException.cpp:
* fileapi/FileException.cpp:
* storage/SQLTransaction.cpp:
(WebCore::SQLTransaction::openTransactionAndPreflight):
(WebCore::SQLTransaction::postflightAndCommit):
* xml/XMLHttpRequestException.cpp:
2012-01-18 David Levin <levin@chromium.org>
Allow delayed DC allocation in HWndDC.
......@@ -80,7 +80,7 @@ static const char* const coreExceptionDescriptions[] = {
"The type of an object was incompatible with the expected type of the parameter associated to the object.",
"An attempt was made to break through the security policy of the user agent.",
// FIXME: Couldn't find a description in the HTML/DOM specifications for NETWORK_ERR, ABORT_ERR, URL_MISMATCH_ERR, and QUOTA_EXCEEDED_ERR
"A network error occured.",
"A network error occurred.",
"The user aborted a request.",
"A worker global scope represented an absolute URL that is not equal to the resulting absolute URL.",
"An attempt was made to add something to storage that exceeded the quota.",
......
......@@ -54,7 +54,7 @@ static const char* const exceptionDescriptions[] = {
"A requested file or directory could not be found at the time an operation was processed.",
"It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources.",
"An ongoing operation was aborted, typically with a call to abort().",
"The requested file could not be read, typically due to permission problems that have occured after a reference to a file was acquired.",
"The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.",
"A URI supplied to the API was malformed, or the resulting Data URL has exceeded the URL length limitations for Data URLs.",
"An attempt was made to write to a file or directory which could not be modified due to the state of the underlying filesystem.",
"An operation that depends on state cached in an interface object was made but the state had changed since it was read from disk.",
......
......@@ -299,7 +299,7 @@ void SQLTransaction::openTransactionAndPreflight()
m_transactionError = m_wrapper->sqlError();
if (!m_transactionError) {
m_database->reportStartTransactionResult(4, SQLError::UNKNOWN_ERR, 0);
m_transactionError = SQLError::create(SQLError::UNKNOWN_ERR, "unknown error occured during transaction preflight");
m_transactionError = SQLError::create(SQLError::UNKNOWN_ERR, "unknown error occurred during transaction preflight");
}
handleTransactionError(false);
return;
......@@ -483,7 +483,7 @@ void SQLTransaction::postflightAndCommit()
m_transactionError = m_wrapper->sqlError();
if (!m_transactionError) {
m_database->reportCommitTransactionResult(3, SQLError::UNKNOWN_ERR, 0);
m_transactionError = SQLError::create(SQLError::UNKNOWN_ERR, "unknown error occured during transaction postflight");
m_transactionError = SQLError::create(SQLError::UNKNOWN_ERR, "unknown error occurred during transaction postflight");
}
handleTransactionError(false);
return;
......
......@@ -38,7 +38,7 @@ static const char* const exceptionNames[] = {
};
static const char* const exceptionDescriptions[] = {
"A network error occured in synchronous requests.",
"A network error occurred in synchronous requests.",
"The user aborted a request in synchronous requests."
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment