Skip to content

Commit

Permalink
fixup! fix(InteractionOutput): adjust implementation to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 27, 2024
1 parent 22b57f4 commit ab3ef78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/implementation/interaction_output.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "dart:typed_data";

import "../definitions/data_schema.dart";
import "../definitions/form.dart";
import "../exceptions.dart";
import "../scripting_api.dart" as scripting_api;
import "content.dart";
import "content_serdes.dart";
Expand Down Expand Up @@ -60,8 +61,7 @@ class InteractionOutput implements scripting_api.InteractionOutput {
}

if (schema == null) {
// TODO: Use NotReadableError here
throw Exception(
throw NotReadableException(
"Can't convert data to a value because no DataSchema is present.",
);
}
Expand Down

0 comments on commit ab3ef78

Please sign in to comment.