@@ -155,18 +155,20 @@ export function saveProject(selectedFile = null, autosave = false) {
155155 if ( ! autosave ) {
156156 if ( state . ide . justOpenedProject && state . preferences . autosave ) {
157157 dispatch ( showToast ( 5500 ) ) ;
158- dispatch ( setToastText ( 'Project saved.' ) ) ;
158+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
159159 setTimeout ( ( ) => dispatch ( setToastText ( 'Autosave enabled.' ) ) , 1500 ) ;
160160 dispatch ( resetJustOpenedProject ( ) ) ;
161161 } else {
162162 dispatch ( showToast ( 1500 ) ) ;
163- dispatch ( setToastText ( 'Project saved.' ) ) ;
163+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
164164 }
165165 }
166166 } )
167167 . catch ( ( error ) => {
168168 const { response } = error ;
169169 dispatch ( endSavingProject ( ) ) ;
170+ dispatch ( setToastText ( 'Failed to save sketch.' ) ) ;
171+ dispatch ( showToast ( 1500 ) ) ;
170172 if ( response . status === 403 ) {
171173 dispatch ( showErrorModal ( 'staleSession' ) ) ;
172174 } else if ( response . status === 409 ) {
@@ -195,18 +197,20 @@ export function saveProject(selectedFile = null, autosave = false) {
195197 if ( ! autosave ) {
196198 if ( state . preferences . autosave ) {
197199 dispatch ( showToast ( 5500 ) ) ;
198- dispatch ( setToastText ( 'Project saved.' ) ) ;
200+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
199201 setTimeout ( ( ) => dispatch ( setToastText ( 'Autosave enabled.' ) ) , 1500 ) ;
200202 dispatch ( resetJustOpenedProject ( ) ) ;
201203 } else {
202204 dispatch ( showToast ( 1500 ) ) ;
203- dispatch ( setToastText ( 'Project saved.' ) ) ;
205+ dispatch ( setToastText ( 'Sketch saved.' ) ) ;
204206 }
205207 }
206208 } )
207209 . catch ( ( error ) => {
208210 const { response } = error ;
209211 dispatch ( endSavingProject ( ) ) ;
212+ dispatch ( setToastText ( 'Failed to save sketch.' ) ) ;
213+ dispatch ( showToast ( 1500 ) ) ;
210214 if ( response . status === 403 ) {
211215 dispatch ( showErrorModal ( 'staleSession' ) ) ;
212216 } else {
0 commit comments