Skip to content

Commit 3c050aa

Browse files
committed
Project deletion tests
1 parent b1eb2cf commit 3c050aa

File tree

2 files changed

+397
-6
lines changed

2 files changed

+397
-6
lines changed

nexus/src/db/datastore/project.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl DataStore {
114114
.map_err(|e| public_error_from_diesel_pool(e, ErrorHandler::Server))?;
115115
if disk_found.is_some() {
116116
return Err(Error::InvalidRequest {
117-
message: "project to be deleted contains an disk".to_string(),
117+
message: "project to be deleted contains a disk".to_string(),
118118
});
119119
}
120120

@@ -223,7 +223,8 @@ impl DataStore {
223223
.map_err(|e| public_error_from_diesel_pool(e, ErrorHandler::Server))?;
224224
if ip_pool_found.is_some() {
225225
return Err(Error::InvalidRequest {
226-
message: "project to be deleted contains a ip pool".to_string(),
226+
message: "project to be deleted contains an ip pool"
227+
.to_string(),
227228
});
228229
}
229230

0 commit comments

Comments
 (0)