Skip to content

Commit

Permalink
[FIX] Template return type error message (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnexomWid committed Aug 3, 2020
1 parent f01530f commit 375d54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/bridge.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void evalTemplate(BridgeData& data, const uint8_t* templateBytes, size_t templat

memcpy(output.get() + outputSize, ptr, str.size());
outputSize += str.size();
} else throw RenderingException("Unsupported template return type", "must be String, Number, Object, Array, ArrayBuffer, null or undefined", templateBytes, templateLength);
} else throw RenderingException("Unsupported template return type", "must be String, Number, Object, Array, Buffer, null or undefined", templateBytes, templateLength);
}

void evalVoidTemplate(BridgeData& data, const uint8_t* templateBytes, size_t templateLength) {
Expand Down

0 comments on commit 375d54d

Please sign in to comment.