mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 14:56:48 +00:00
fix: add missing try...catch and extract error message
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { NcErrorType } from 'nocodb-sdk'
|
||||
|
||||
export async function extractSdkResponseErrorMsg(e: Error & { response: any }) {
|
||||
export async function extractSdkResponseErrorMsg(e: Error & { response?: any }) {
|
||||
if (!e || !e.response) {
|
||||
if (e?.message?.includes('object ProgressEvent')) {
|
||||
return 'Requested file was not accessible. Please check if server allows accessing the file. If you are sure the file exists, it might be a CORS issue.'
|
||||
|
||||
Reference in New Issue
Block a user