framework-do-dede 3.0.26 → 3.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,11 +150,17 @@ export default class ControllerHandler {
|
|
|
150
150
|
statusCode: error.getStatusCode()
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
+
const debugError = {
|
|
154
|
+
sourceUrl: error.sourceURL,
|
|
155
|
+
line: error.line,
|
|
156
|
+
column: error.column,
|
|
157
|
+
};
|
|
153
158
|
error = new InternalServerError(error.message, httpServer.getDefaultMessageError());
|
|
154
159
|
return {
|
|
155
160
|
message: error.message,
|
|
156
161
|
statusCode: error.getStatusCode(),
|
|
157
162
|
unexpectedError: error instanceof InternalServerError ? error.getUnexpectedError() : undefined,
|
|
163
|
+
...debugError
|
|
158
164
|
};
|
|
159
165
|
}
|
|
160
166
|
}
|