diff --git a/src/http/response/ErrorResponseFactory.ts b/src/http/response/ErrorResponseFactory.ts index c5d2bfc..d21c184 100644 --- a/src/http/response/ErrorResponseFactory.ts +++ b/src/http/response/ErrorResponseFactory.ts @@ -76,7 +76,7 @@ Stack trace: str += `

 Context:
-${Object.keys(context).map(key => `    - ${key} : ${context[key]}\n`)}
+${Object.keys(context).map(key => `    - ${key} : ${context[key]}`).join('\n')}
                 
` } diff --git a/src/lifecycle/Application.ts b/src/lifecycle/Application.ts index 5b7c481..8e1d03e 100644 --- a/src/lifecycle/Application.ts +++ b/src/lifecycle/Application.ts @@ -174,7 +174,7 @@ export class Application extends Container { } } - protected async startUnit(unit: Unit) { + public async startUnit(unit: Unit) { const logging: Logging = this.make(Logging) try { @@ -190,7 +190,7 @@ export class Application extends Container { } } - protected async stopUnit(unit: Unit) { + public async stopUnit(unit: Unit) { const logging: Logging = this.make(Logging) try {