1.3.7-4 - Prod Build - Updated sentry logging.
This commit is contained in:
@@ -2,6 +2,7 @@ import axios from "axios";
|
||||
import { store } from "../redux/store";
|
||||
import mime from "mime";
|
||||
import * as MediaLibrary from "expo-media-library";
|
||||
import * as Sentry from "sentry-expo";
|
||||
|
||||
axios.interceptors.request.use(
|
||||
function (config) {
|
||||
@@ -94,11 +95,15 @@ export const handleLocalUpload = async ({
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
Sentry.Native.captureException(error);
|
||||
|
||||
console.log("Error uploading documents:", error.message);
|
||||
onError && onError({ error: error.message });
|
||||
}
|
||||
} catch (error) {
|
||||
console.log("Uncaught error", error);
|
||||
Sentry.Native.captureException(error);
|
||||
|
||||
onError && onError({ error: error.message });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user