Skip to content

Commit 54194d8

Browse files
committed
Call sass with --trace
Sometimes there are errors like this: TypeError: String can't be coerced into Integer Use --trace for backtrace. The input is not logged, and not even the line number & file.
1 parent 9839a51 commit 54194d8

File tree

1 file changed

+1
-1
lines changed
  • lib/Mojolicious/Plugin/AssetPack/Pipe

1 file changed

+1
-1
lines changed

lib/Mojolicious/Plugin/AssetPack/Pipe/Sass.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sub process {
6161
$asset->content($store->save(\$css, $attrs))->FROM_JSON($attrs);
6262
}
6363
else {
64-
my @args = (qw(sass -s), map { ('-I', $_) } @{$opts{include_paths}});
64+
my @args = (qw(sass -s --trace), map { ('-I', $_) } @{$opts{include_paths}});
6565
push @args, '--scss' if $asset->format eq 'scss';
6666
push @args, qw(-t compressed) if $attrs->{minified};
6767
$self->run(\@args, \$content, \my $css, undef);

0 commit comments

Comments
 (0)