[api] Display stack for errors as sole metadata. Fixes #199.