Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 61202e34

Přidáno uživatelem Pavel Fidranský před asi 6 roky(ů)

improved error handling

Zobrazit rozdíly:

sources/src/main/webapp/js/components/loginPopup.js
111 111
						alert('Something went wrong.');
112 112
				}
113 113
			} else {
114
				alert('Server has probably gone away.');
114
				alert('Something went wrong. Check console for more details.');
115
				console.error(error);
115 116
			}
116 117
		}
117 118
	}
sources/src/main/webapp/js/components/registerPopup.js
151 151
						alert('Something went wrong.');
152 152
				}
153 153
			} else {
154
				alert('Server has probably gone away.');
154
				alert('Something went wrong. Check console for more details.');
155
				console.error(error);
155 156
			}
156 157
		}
157 158
	}
sources/src/main/webapp/js/components/saveDiagramModalWindow.js
125 125
						alert('Something went wrong.');
126 126
				}
127 127
			} else {
128
				alert('Server has probably gone away.');
128
				alert('Something went wrong. Check console for more details.');
129
				console.error(error);
129 130
			}
130 131
		}
131 132
	}
sources/src/main/webapp/js/showGraphApp.js
341 341
						alert('Something went wrong.');
342 342
				}
343 343
			} else {
344
				alert('Server has probably gone away.');
344
				alert('Something went wrong. Check console for more details.');
345
				console.error(error);
345 346
			}
346 347

  
347 348
			// go to the upload page
sources/src/main/webapp/js/uploadFilesApp.js
68 68
			if (error instanceof HttpError) {
69 69
				alert('Something went wrong.');
70 70
			} else {
71
				alert('Server has probably gone away.');
71
				alert('Something went wrong. Check console for more details.');
72
				console.error(error);
72 73
			}
73 74
		}
74 75
	}
......
104 105
			if (error instanceof HttpError) {
105 106
				alert('Something went wrong.');
106 107
			} else {
107
				alert('Server has probably gone away.');
108
				alert('Something went wrong. Check console for more details.');
109
				console.error(error);
108 110
			}
109 111
		}
110 112
	}
......
132 134
							alert('Something went wrong.');
133 135
					}
134 136
				} else {
135
					alert('Server has probably gone away.');
137
					alert('Something went wrong. Check console for more details.');
138
					console.error(error);
136 139
				}
137 140
			}
138 141
		}

Také k dispozici: Unified diff