Skip to content

Commit 5010c62

Browse files
committed
log just the error
1 parent 4975c33 commit 5010c62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-maplibre",
3-
"version": "1.0.0-next.5",
3+
"version": "1.0.0-next.6",
44
"description": "Svelte bindings for MapLibre",
55
"author": {
66
"name": "Daniel Imfeld",

src/lib/MapLibre.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
// If there's no error handler, just log it to match the default behavior from MapLibre.
232232
// But skip AbortError since that's a normal thing that happens inside certain sources,
233233
// and not useful to log.
234-
console.error(event);
234+
console.error(event.error);
235235
}
236236
}
237237

0 commit comments

Comments
 (0)