1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 04:54:18 +00:00

🌐 Revert error translation

This commit is contained in:
Steffo 2021-05-18 15:16:43 +02:00
parent 79427d6b96
commit ab538e6b2b
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -8,7 +8,7 @@ import ContextRepositoryEditor from "../contexts/ContextRepositoryEditor"
export default function useRepositoryEditor() {
const context = useContext(ContextRepositoryEditor)
if(!context) {
throw new Error("Questo componente deve essere messo in un RepositoryEditor.")
throw new Error("This component must be placed inside a RepositoryEditor.")
}
return context
}