diff options
Diffstat (limited to 'js/format_error.ts')
-rw-r--r-- | js/format_error.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/format_error.ts b/js/format_error.ts index 7cdbd72c3..1c79f36fc 100644 --- a/js/format_error.ts +++ b/js/format_error.ts @@ -7,9 +7,7 @@ import { assert } from "./util"; export function formatError(errString: string): string { const builder = flatbuffers.createBuilder(); const errString_ = builder.createString(errString); - msg.FormatError.startFormatError(builder); - msg.FormatError.addError(builder, errString_); - const offset = msg.FormatError.endFormatError(builder); + const offset = msg.FormatError.createFormatError(builder, errString_); const baseRes = sendSync(builder, msg.Any.FormatError, offset); assert(baseRes != null); assert(msg.Any.FormatErrorRes === baseRes!.innerType()); |