set_errmsg() follows the chromium / v8 coding convention.  The rule of thumb is that trivial getters and setters are snake-cased whereas non-trivial methods are CamelCased.  It's a hint about the method's cost (cheap vs. potentially expensive) and/or side effects (trivial or none vs. complex.)