• Ken Rockot's avatar
    [mojo] Make failure to init more obvious · 04708acf
    Ken Rockot authored
    Currently when you try using Mojo without first initializing it
    properly, you get an error message about the function not being
    supported in "this version" of Mojo Core. This is marginally better
    than a cryptic crash stack, but still misleading.
    
    This CL detects when a missing function is due to a lack of Mojo
    initialization and reports it as such.
    
    Bug: 682732
    Change-Id: Ia3f057171f2387a0387a7547a1a55fcc413cf7c0
    Reviewed-on: https://chromium-review.googlesource.com/c/1337813Reviewed-by: default avatarOksana Zhuravlova <oksamyt@chromium.org>
    Commit-Queue: Ken Rockot <rockot@google.com>
    Cr-Commit-Position: refs/heads/master@{#608503}
    04708acf
thunks.cc 19.7 KB