Skip to content

Commit

Permalink
rust install
Browse files Browse the repository at this point in the history
  • Loading branch information
tysonrm committed Sep 22, 2022
1 parent bb771d0 commit fe3e689
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@module-federation/aegis",
"version": "1.3.8-beta",
"version": "1.3.9-beta",
"module": "lib/index.js",
"main": "lib/index.js",
"repository": "[email protected]:module-federation/aegis.git",
Expand Down Expand Up @@ -30,6 +30,7 @@
"cors": "^2.8.5",
"dotenv": "16.0.1",
"express": "4.18.1",
"express-fileupload": "^1.4.0",
"express-jwt": "7.7.5",
"import-fresh": "3.3.0",
"ipfs": "^0.63.0",
Expand Down
11 changes: 6 additions & 5 deletions src/domain/util/app-error.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/**
*
* Wrap {@link Error}'s for quick identification as
* errors after deserialization crossing thread boundary
* @param {Error} error
* @returns
*/
export function AppError (error, code = null) {
export function AppError (error, code = 400, cause = null) {
return {
name: error.name,
message: error.message,
stack: error.stack,
cause: error.cause,
code: code, // set http status code
code: error.code || code, // set http status code
cause: error.cause || cause,
message: error.message,
hasError: true
}
}
1 change: 1 addition & 0 deletions wasmedge-nodejs-starter
Submodule wasmedge-nodejs-starter added at 3c3b11

0 comments on commit fe3e689

Please sign in to comment.