mirror of https://github.com/sveltejs/svelte
fix: don't print errors on migration errors (#13754)
makes it look like the migration script failed when in reality you need to update some of your files by handpull/13760/head
parent
ae8f50fd6a
commit
d1cac703c0
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: don't print errors on migration errors
|
@ -0,0 +1,31 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
logs: [
|
||||
'One or more `@migration-task` comments were added to `output.svelte`, please check them and complete the migration manually.'
|
||||
],
|
||||
errors: [
|
||||
'Error while migrating Svelte code',
|
||||
{
|
||||
code: 'unexpected_eof',
|
||||
end: {
|
||||
character: 30,
|
||||
column: 21,
|
||||
line: 3
|
||||
},
|
||||
filename: 'output.svelte',
|
||||
frame: `1: <script
|
||||
2:
|
||||
3: unterminated template
|
||||
^`,
|
||||
message: 'Unexpected end of input',
|
||||
name: 'CompileError',
|
||||
position: [30, 30],
|
||||
start: {
|
||||
character: 30,
|
||||
column: 21,
|
||||
line: 3
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
@ -0,0 +1,3 @@
|
||||
<script
|
||||
|
||||
unterminated template
|
@ -0,0 +1,4 @@
|
||||
<!-- @migration-task Error while migrating Svelte code: Unexpected end of input -->
|
||||
<script
|
||||
|
||||
unterminated template
|
Loading…
Reference in new issue