@projetoacbr/acbrlib-base-node 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.js +1 -2
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -381,8 +381,7 @@ class ACBrLibBaseMT {
|
|
|
381
381
|
if (!this._isResultErrorCode(result)) {
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
|
-
let errorMessage = this.#isInitialized()
|
|
385
|
-
? this.ultimoRetorno() : "Biblioteca não inicializada";
|
|
384
|
+
let errorMessage = this.#isInitialized() ? `${result}: ${this.ultimoRetorno()}` : `${result}: Biblioteca não inicializada`;
|
|
386
385
|
switch (result) {
|
|
387
386
|
case ACBrLibResultCodes_1.ACBrLibResultCodes.ErrLibNaoInicializada:
|
|
388
387
|
throw new exception_1.ACBrLibLibNaoInicializadaError("Erro ao inicializar " + this.constructor.name);
|