Skip to content

Commit fac9a76

Browse files
authored
Merge pull request #4466 from dpalou/MOBILE-4653
MOBILE-4653 acceptance: Use LMS main branch again
2 parents 7eb3676 + f69a36b commit fac9a76

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/acceptance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
170170
env:
171171
DB: pgsql
172-
MOODLE_BRANCH: ${{ github.event.inputs.moodle_branch || 'MOODLE_500_STABLE' }} # TODO: Use 'main' once MDL-85632 is fixed.
172+
MOODLE_BRANCH: ${{ github.event.inputs.moodle_branch || 'main' }}
173173
MOODLE_REPO: ${{ github.event.inputs.moodle_repository || 'https://github.com/moodle/moodle.git' }}
174174
MOODLE_BEHAT_IONIC_WWWROOT: https://localhost:8001
175175
MOODLE_BEHAT_DEFAULT_BROWSER: chrome

src/core/classes/sites/authenticated-site.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,11 @@ export class CoreAuthenticatedSite extends CoreUnauthenticatedSite {
737737

738738
if (preSets.saveToCache) {
739739
// Save the error instead of deleting the cache entry so the same content is displayed in offline.
740-
this.saveToCache(method, data, error, preSets);
740+
// Create a new error object when storing, otherwise the message is not stored with CoreWSError.
741+
this.saveToCache(method, data, {
742+
...error,
743+
message: error.message,
744+
}, preSets);
741745
}
742746

743747
throw new CoreWSError(error);

0 commit comments

Comments
 (0)