expection: fix non-nullable return

This commit is contained in:
Pierre Tachoire
2025-05-17 10:57:25 +02:00
parent 9f97725894
commit 2261eac288
2 changed files with 5 additions and 4 deletions

View File

@@ -1147,7 +1147,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
scope: *const Scope,
// the caller needs to deinit the string returned
pub fn exception(self: Exception, allocator: Allocator) !?[]const u8 {
pub fn exception(self: Exception, allocator: Allocator) ![]const u8 {
const scope = self.scope;
return try valueToString(allocator, self.inner, scope.isolate, scope.context);
}