Skip to content

Commit

Permalink
Call sass with --trace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
perlpunk committed Jun 17, 2024
1 parent 9839a51 commit 54194d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/AssetPack/Pipe/Sass.pm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ sub process {
$asset->content($store->save(\$css, $attrs))->FROM_JSON($attrs);
}
else {
my @args = (qw(sass -s), map { ('-I', $_) } @{$opts{include_paths}});
my @args = (qw(sass -s --trace), map { ('-I', $_) } @{$opts{include_paths}});
push @args, '--scss' if $asset->format eq 'scss';
push @args, qw(-t compressed) if $attrs->{minified};
$self->run(\@args, \$content, \my $css, undef);
Expand Down

0 comments on commit 54194d8

Please sign in to comment.