Remove various uses of INTERNAL_ERROR

INTERNAL_ERROR now means there really was some internal error
This commit is contained in:
Girish Ramakrishnan
2019-10-24 18:32:33 -07:00
parent 6e57f8cc03
commit ad9097d212
9 changed files with 19 additions and 21 deletions

View File

@@ -346,7 +346,7 @@ function getDuplicateErrorDetails(errorMessage, locations, domainObjectMap, port
var match = errorMessage.match(/ER_DUP_ENTRY: Duplicate entry '(.*)' for key '(.*)'/);
if (!match) {
debug('Unexpected SQL error message.', errorMessage);
return new BoxError(BoxError.INTERNAL_ERROR, new Error(errorMessage));
return new BoxError(BoxError.DATABASE_ERROR, errorMessage);
}
// check if a location conflicts