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 {
130130
131131 result . input = { line, column, source : this . css }
132132 if ( this . file ) {
133- if ( pathToFileURL ) {
133+ if ( pathToFileURL ) {
134134 result . input . url = pathToFileURL ( this . file ) . toString ( )
135135 }
136136 result . input . file = this . file
@@ -164,10 +164,10 @@ class Input {
164164 }
165165
166166 if ( fromUrl . protocol === 'file:' ) {
167- if ( fileURLToPath ) {
167+ if ( fileURLToPath ) {
168168 result . file = fileURLToPath ( fromUrl )
169169 } 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` ) ;
171171 }
172172 }
173173
Original file line number Diff line number Diff line change @@ -202,10 +202,10 @@ class MapGenerator {
202202 if ( this . mapOpts . from ) {
203203 return this . toUrl ( this . mapOpts . from )
204204 } else if ( this . mapOpts . absolute ) {
205- if ( pathToFileURL ) {
205+ if ( pathToFileURL ) {
206206 return pathToFileURL ( node . source . input . from ) . toString ( )
207207 } 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' )
209209 }
210210 } else {
211211 return this . toUrl ( this . path ( node . source . input . from ) )
You can’t perform that action at this time.
0 commit comments