Skip to content

Commit 43cfb18

Browse files
committed
v1.12.11.0: Fix formatting in errors
1 parent 04a266b commit 43cfb18

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.12.11.0 (2022-11-15)
2+
3+
- Fix incorrect formatting of error messages when modules have both an 'info' and 'bugs' URL in their package manifest. ([Issue #73](https://github.com/ruipin/fvtt-lib-wrapper/issues/73))
4+
15
# 1.12.10.0 (2022-09-19)
26

37
- Code refactoring/clean-up (no user-facing changes)

module.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "lib-wrapper",
44
"title": "libWrapper",
55
"description": "Library for wrapping core Foundry VTT methods, meant to improve compatibility between packages that wrap the same methods.",
6-
"version": "1.12.10.0",
6+
"version": "1.12.11.0",
77
"author": "Rui Pinheiro",
88
"authors": [{
99
"name": "Rui Pinheiro",

src/errors/base_errors.js

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export class LibWrapperPackageError extends LibWrapperError {
146146

147147
const report_url = package_info.bugs;
148148
if(typeof report_url === 'string') {
149+
if(has_info) console_msg += '\n';
149150
console_msg += i18n.format(`${type_prefix}.report`, {url: report_url});
150151
}
151152
else {

0 commit comments

Comments
 (0)