Skip to content

Commit

Permalink
bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonhochkins committed Jul 2, 2024
1 parent 8aa9595 commit c7e3ff1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hakit/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hakit",
"version": "1.0.14",
"version": "1.0.15",
"slug": "hakit",
"init": false,
"ingress": true,
Expand Down
9 changes: 7 additions & 2 deletions hakit/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,17 @@ async function loadConfig() {
.on('error', (err: Error) => { // Change the type to capture full error object
console.error('Error extracting Next.js application');
// console.error('Error stack:', err.stack);
res.status(200).send(err);
res.status(500).send('message' in err ? err.message : err);
});

} catch (error) {
console.error('Error downloading Next.js application');
res.status(200).send(error);
if (error instanceof Error) {
console.error('Error message:', error.message);
return res.status(500).send('message' in error ? error.message : 'Error downloading Next.js application');
}
res.status(500).send('Error downloading Next.js application');

}
});

Expand Down

0 comments on commit c7e3ff1

Please sign in to comment.