File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class Input {
130
130
131
131
result . input = { line, column, source : this . css }
132
132
if ( this . file ) {
133
- if ( pathToFileURL ) {
133
+ if ( pathToFileURL ) {
134
134
result . input . url = pathToFileURL ( this . file ) . toString ( )
135
135
}
136
136
result . input . file = this . file
@@ -164,10 +164,10 @@ class Input {
164
164
}
165
165
166
166
if ( fromUrl . protocol === 'file:' ) {
167
- if ( fileURLToPath ) {
167
+ if ( fileURLToPath ) {
168
168
result . file = fileURLToPath ( fromUrl )
169
169
} else {
170
- throw new Error ( `file: protocol is not available in this postcss build` ) ;
170
+ throw new Error ( `file: protocol is not available in this PostCSS build` ) ;
171
171
}
172
172
}
173
173
Original file line number Diff line number Diff line change @@ -202,10 +202,10 @@ class MapGenerator {
202
202
if ( this . mapOpts . from ) {
203
203
return this . toUrl ( this . mapOpts . from )
204
204
} else if ( this . mapOpts . absolute ) {
205
- if ( pathToFileURL ) {
205
+ if ( pathToFileURL ) {
206
206
return pathToFileURL ( node . source . input . from ) . toString ( )
207
207
} else {
208
- throw new Error ( 'map option "absolute" is not available in this postcss build' )
208
+ throw new Error ( '` map.absolute` option is not available in this PostCSS build' )
209
209
}
210
210
} else {
211
211
return this . toUrl ( this . path ( node . source . input . from ) )
You can’t perform that action at this time.
0 commit comments