Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't assume e has a message property #14

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ jobs:
node-version: '20.x'

- name: Install XTP CLI
run: curl https://static.dylibso.com/cli/install.sh | sudo sh
run: curl https://static.dylibso.com/cli/install.sh | bash

- name: Check XTP CLI version
run: xtp -v

- name: Install Extism js-pdk
run: |
curl -O https://raw.githubusercontent.com/extism/js-pdk/main/install.sh
sudo sh install.sh
curl -Ls https://raw.githubusercontent.com/extism/js-pdk/main/install.sh | bash

- name: Check
run: |
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class MemoryView extends DataView {
return JSON.parse(this.text());
} catch (e) {
const text = this.text();
throw new Error(`Failed to parse JSON: ${text}. Error: ${e.message}`);
throw new Error(`Failed to parse JSON: ${text}. Error: ${e}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dylibso/xtp-test",
"version": "0.0.1",
"version": "0.0.2",
"description": "XTP test harness",
"main": "index.ts",
"scripts": {
Expand Down