Kaydet (Commit) a7738da3 authored tarafından Hakkı Dizdar's avatar Hakkı Dizdar

Park Oluşturma aşaması için hata yönetimi için düzenlemeler yapıldı

üst c701f13d
...@@ -30,8 +30,14 @@ const start = async (image, res) => { ...@@ -30,8 +30,14 @@ const start = async (image, res) => {
], ],
}, },
function (err, container) { function (err, container) {
container.start(); container
res.json({ id: container.id, port: port }); .start()
.then(() => {
res.json({ id: container.id, port: port }).end();
})
.catch((err) => {
res.status(500).end(err);
});
} }
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment