Skip to content

Commit

Permalink
feat: throw err on $fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
linkb15 committed Oct 14, 2022
1 parent c9bd12a commit ae10524
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ const onSubmit = async () => {
})
router.push('/authenticated-page')
} catch (e) { }
} catch (e) {
console.log(e.data)
}
}
const logUser = async () => {
Expand Down
1 change: 1 addition & 0 deletions src/runtime/composables/useDirectus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const useDirectus = () => {
})
} catch (err: any) {
console.error('[Directus Error]: ' + err)
throw err
}
}
}

0 comments on commit ae10524

Please sign in to comment.