##// END OF EJS Templates
Re-raise errors with throw instead of Promise.reject()
Thomas Kluyver -
Show More
@@ -129,9 +129,9 b' define(['
129 129 // TODO: update IPEP27 to specify errors more precisely, so
130 130 // that error types can be detected here with certainty.
131 131 if (error.xhr.status === 400) {
132 return Promise.reject(new Contents.DirectoryNotEmptyError());
132 throw new Contents.DirectoryNotEmptyError();
133 133 }
134 return Promise.reject(error);
134 throw error;
135 135 }
136 136 );
137 137 };
General Comments 0
You need to be logged in to leave comments. Login now