Skip to content

Commit 31a5348

Browse files
committed
mirage/crates: Fix PUT /api/v1/crates/:crate_id/owners error response to match real API
1 parent ecc3239 commit 31a5348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mirage/route-handlers/crates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function register(server) {
165165
const user = schema.users.findBy({ login: ownerId });
166166

167167
if (!user) {
168-
return notFound();
168+
return { errors: [{ detail: `could not find user with login \`${ownerId}\`` }] };
169169
}
170170

171171
return { ok: true };

0 commit comments

Comments
 (0)