@naculus/connect-appkit-vue 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1815,6 +1815,7 @@ function useUserOpStatus(options) {
1815
1815
  }
1816
1816
 
1817
1817
  // src/useSendCalls.ts
1818
+ import { errorMessage } from "@naculus/connect-appkit-core";
1818
1819
  import { computed as computed15, onScopeDispose as onScopeDispose12, shallowRef as shallowRef17, toValue as toValue18, unref as unref19 } from "vue";
1819
1820
  function useSendCalls(options) {
1820
1821
  const status = shallowRef17("idle");
@@ -1838,7 +1839,7 @@ function useSendCalls(options) {
1838
1839
  }
1839
1840
  return hash;
1840
1841
  } catch (cause) {
1841
- const normalized = cause instanceof Error ? cause : new Error("sendCalls failed");
1842
+ const normalized = cause instanceof Error ? cause : new Error(errorMessage(cause));
1842
1843
  if (!disposed && own === sendGeneration) {
1843
1844
  status.value = "failed";
1844
1845
  error.value = normalized;