Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Report a better error message for an empty CompileRequest.Input.path (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Dec 14, 2021
1 parent 53cbcdb commit 17f1e69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0-beta.13

* Report a better error message for an empty `CompileRequest.Input.path`.

## 1.0.0-beta.12

* Support version 1.0.0-beta.14 of the Sass embedded protocol:
Expand Down
4 changes: 4 additions & 0 deletions bin/dart_sass_embedded.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ void main(List<String> args) {
break;

case InboundMessage_CompileRequest_Input.path:
if (request.path.isEmpty) {
throw mandatoryError("CompileRequest.Input.path");
}

try {
result = sass.compileToResult(request.path,
color: request.alertColor,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass_embedded
version: 1.0.0-beta.12
version: 1.0.0-beta.13
description: An implementation of the Sass embedded protocol using Dart Sass.
author: Sass Team
homepage: https://github.com/sass/dart-sass-embedded
Expand Down

0 comments on commit 17f1e69

Please sign in to comment.