v1.0.21
This commit is contained in:
1 parent
790ce092ee
commit
55f3101a19
51 files changed
+763
-599
No files matched your search
@@ -46,8 +46,11 @@ export const POST: RequestHandler = async (event) => {
|
||||
}
|
||||
|
||||
return json({ success: true });
|
||||
} catch (error) {
|
||||
console.error('Error renaming container:', error);
|
||||
} catch (error: any) {
|
||||
if (error?.statusCode === 404) {
|
||||
return json({ error: error.json?.message || 'Container not found' }, { status: 404 });
|
||||
}
|
||||
console.error('Error renaming container:', error?.message || error);
|
||||
return json({ error: 'Failed to rename container' }, { status: 500 });
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user