File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
packages/plugins/AddressSearch/src Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const makeActions = () => {
28
28
. filter ( ( { url } ) => ! url )
29
29
. forEach ( ( miss ) =>
30
30
console . error (
31
- `POLAR Plugin AddressSearch : A specification is missing an URL: (${ JSON . stringify (
31
+ `@polar/plugin-address-search : A specification is missing an URL: (${ JSON . stringify (
32
32
miss
33
33
) } )`
34
34
)
@@ -139,7 +139,7 @@ export const makeActions = () => {
139
139
) as PromiseRejectedResult [ ]
140
140
) . forEach ( ( { reason } ) =>
141
141
console . error (
142
- 'AddressSearch : An error occurred while sending a request: ' ,
142
+ '@polar/plugin-address-search : An error occurred while sending a request: ' ,
143
143
reason
144
144
)
145
145
)
@@ -149,7 +149,7 @@ export const makeActions = () => {
149
149
} )
150
150
. catch ( ( error : Error ) => {
151
151
console . error (
152
- 'AddressSearch : An error occurred while searching.' ,
152
+ '@polar/plugin-address-search : An error occurred while searching.' ,
153
153
error
154
154
)
155
155
commit ( 'setSearchResults' , SearchResultSymbols . ERROR )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export const getMethodContainer = () => {
13
13
Object . entries ( additionalMethods ) . forEach ( ( [ type , searchMethod ] ) => {
14
14
if ( methods [ type ] ) {
15
15
console . error (
16
- `AddressSearch : Method "${ type } " already exists. Please choose a different name. Overrides are not allowed.`
16
+ `@polar/plugin-address-search : Method "${ type } " already exists. Please choose a different name. Overrides are not allowed.`
17
17
)
18
18
} else {
19
19
methods [ type ] = searchMethod
@@ -26,7 +26,7 @@ export const getMethodContainer = () => {
26
26
return method
27
27
}
28
28
throw new Error (
29
- `AddressSearch: The given type "${ type } " does not define a valid searchMethod.`
29
+ `The given type "${ type } " does not define a valid searchMethod.`
30
30
)
31
31
}
32
32
Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ export default async function (
68
68
// Case 2 example: "EPSG:25832"
69
69
featureEPSG = srsName
70
70
} else {
71
- console . error ( 'Unknown formatting of projection:' , srsName )
71
+ console . error (
72
+ '@polar/plugin-address-search: Unknown formatting of projection:' ,
73
+ srsName
74
+ )
72
75
}
73
76
74
77
const featureCollection : FeatureCollection = {
@@ -78,7 +81,7 @@ export default async function (
78
81
79
82
return featureCollection
80
83
} catch ( error ) {
81
- console . error ( error )
84
+ console . error ( '@polar/plugin-address-search' , error )
82
85
throw new Error ( 'An error occurred while fetching the feature collection.' )
83
86
}
84
87
}
You can’t perform that action at this time.
0 commit comments