Remove various uses of INTERNAL_ERROR
INTERNAL_ERROR now means there really was some internal error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user